How to turn off AutoIndex / Index of Web Server?
It is on by default.
I need it to be off by default for security purposes.
How to turn off AutoIndex / Index of Web Server?
Started by
Guest_goodsamaritan_*
, Sep 21 2009 08:36 PM
3 replies to this topic
#1
Guest_goodsamaritan_*
Posted 21 September 2009 - 08:36 PM
#2
Posted 21 September 2009 - 08:59 PM
In httpd.conf look for the section that looks like
<Directory />
and you should see something like the following after it:
Options Indexes FollowSymLinks
To disable directory listing, just remove ‘Indexes’ from this line or change ‘Indexes’ to ‘-Indexes’
Make sure to restart your Apache server afterwards and clear your webcache if there's any in the way.
You may also use .htaccess file for passing this directive if you want to disable directory listing for a domain.
<Directory />
and you should see something like the following after it:
Options Indexes FollowSymLinks
To disable directory listing, just remove ‘Indexes’ from this line or change ‘Indexes’ to ‘-Indexes’
Make sure to restart your Apache server afterwards and clear your webcache if there's any in the way.
You may also use .htaccess file for passing this directive if you want to disable directory listing for a domain.
#3
Guest_goodsamaritan_*
Posted 22 September 2009 - 03:30 AM
Alex,
How do I do this on shared web hosting?
How do I do this on shared web hosting?
#4
Posted 22 September 2009 - 08:54 AM
You can turn off indexing through your Cpanel >> Index Manager. You can customize the directory view by making changes through index manager.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









