homepage Welcome to WebmasterWorld Guest from 54.198.46.115
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Disable directory browsing for a specific website
kmughal80




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

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

 

jitendraag




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

I am assuming you have virtual hosts within your webserver. You can just disable Options Indexes for that particular domain.

kmughal80




msg:3774210
 1:59 pm on Oct 27, 2008 (gmt 0)

but how do I do that ? details would be appreciated

Thanks

jitendraag




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

You can edit your apache httpd.conf for that. Read more about Options Indexes and httpd.conf to get more details.

The Contractor




msg:3774246
 2:39 pm on Oct 27, 2008 (gmt 0)

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

Options -Indexes

kmughal80




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

got it working, thanks all

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved