When you enter the address in your browser: http://localhost:8080/If you have index.html in the root of your file, the browser will display the contents of index.html. If there is no index.html, Apache will The browser displays a list of directories in the root directory of the file, including the files and subdirectories under the root of the file. A security risk to the website. Similarly, when you enter the address of a virtual directory: http://localhost:8080/My/If there is no index.html under the virtual directory, the browser will also display the directory structure of the virtual directory, listing the files under the virtual directory. And subdirectories. We can disable Apache from displaying a list of directory structures by modifying the Apache configuration file. Open httpd.conf and look at a directory configuration:
<Directory "D:/WAMP/WWW"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all</Directory>
You only need By removing the Indexes from the red code above, you can disable Apache from displaying the directory structure. Users will not see the list of files and subdirectories under this directory. The role of Indexes is to display the directory structure when there is no index.html file in the directory. Now change to the following:
<Directory "D:/WAMP/WWW"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all</Directory>
Alternatively, you can add a minus sign before Indexes “-”, can also prohibit Apache from displaying the directory structure. Adding “+” before Indexes means allowing directory browsing; adding “-” means prohibiting directory browsing. Amend as follows:
<Directory "D:/WAMP/WWW"> Options -Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all</Directory>
On April 14, 2010 Intel Information Technology Summit (IDF) entered the second da
You are not authorized to view the page, the page cannot be opened; A similar si
“/” Server error in the application. The program is not registered on the local computer
<IfModule mpm_prefork_module> LIS)(?X<]? StartServers 5 6DM$g=/? MinSpareServers 5 -9%:i?lX
Set up a shared server with 2003 02
How to run scripts other than ASP on IIS
Server 404 error page http status return value of 200 reason analysis
Tcp&Dns working mechanism under Linux
Building a personal server is so simple!
Six strokes teach you to distinguish between high-end and low-end KVM products
Rookie Classroom: How to see if a Linux server is being attacked
How to set up Hyper-V virtual machine NIC?
IIS6 has an application error example
How to close the port? Make the server more secure!
Centos system installation and configuration FastDFS steps to share
ABBYY FineReader11 Chinese crack version installation tutorial
How to set the Word header and footer so that each page is different
Is the 64-bit Win7 system really faster than the 32-bit Win7?
What if the win8 system cannot connect to the network?
I can't do this computer configuration with h1z1?
How to hide the administrator user name of the Win7 login interface
Two cases of strange faults in Windows2000