Solution:
(Recommended learning:apache from entry to proficiency)
If the main directory in the site root directory If the index file fails, Apache will list all files with similar content on the browser to replace the site homepage.
In order to turn off Apache directory listing, you can make global settings in the main configuration file, or set the following rules in the .htaccess file:
Options -Indexes
The above is the detailed content of If the index file is lost, how to invalidate the directory listing?. For more information, please follow other related articles on the PHP Chinese website!