Welcome to WebmasterWorld Guest from 54.166.222.116

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Disable directory browsing for a specific website

     
1:37 pm on Oct 27, 2008 (gmt 0)

5+ Year Member



Hi All,

I am new to Apache and with IIS background. I have about 5 web sites hosted on my Apache server. I want to disable directory browsing for just one web site 'XYZ' and not for other 4. Please help me here in detail.

Thanks

1:51 pm on Oct 27, 2008 (gmt 0)

5+ Year Member



I am assuming you have virtual hosts within your webserver. You can just disable Options Indexes for that particular domain.
1:59 pm on Oct 27, 2008 (gmt 0)

5+ Year Member



but how do I do that ? details would be appreciated

Thanks

2:02 pm on Oct 27, 2008 (gmt 0)

5+ Year Member



You can edit your apache httpd.conf for that. Read more about Options Indexes and httpd.conf to get more details.
2:39 pm on Oct 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can add the following to each .htaccess file in the root of the website/domain:

Options -Indexes

3:35 pm on Oct 27, 2008 (gmt 0)

5+ Year Member



got it working, thanks all
 

Featured Threads

Hot Threads This Week

Hot Threads This Month