Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Howto disable directory browsing

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Simulating directories  
Author Message
user2790

External


Since: May 22, 2004
Posts: 2



(Msg. 1) Posted: Sun May 23, 2004 2:07 am
Post subject: Howto disable directory browsing
Archived from groups: alt>apache>configuration (more info?)

Hello,
I'd like to know how can I avoid directory browsing in my website,
and how can I keep only one directory tree browseable.
For example
I'd like to avoid directory browsing in www.acme.com
but you can see everything in www.acme.com/software
TIA

/helix

 >> Stay informed about: Howto disable directory browsing 
Back to top
Login to vote
chris5

External


Since: Apr 26, 2004
Posts: 9



(Msg. 2) Posted: Sun May 23, 2004 12:13 pm
Post subject: Re: Howto disable directory browsing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Helix wrote:

 > I'd like to know how can I avoid directory browsing in my website,
 > and how can I keep only one directory tree browseable.
 > For example
<font color=purple> > I'd like to avoid directory browsing in <a style='text-decoration: underline;' href="http://www.acme.com</font" target="_blank">www.acme.com</font</a>>
<font color=purple> > but you can see everything in <a style='text-decoration: underline;' href="http://www.acme.com/software</font" target="_blank">www.acme.com/software</font</a>>

Is this what you are wanting?

<Directory /path/to/acme.com>
Options -Indexes
</Directory>

<Directory /path/to/acme.com/software>
Options Indexes
</Directory>

--
Chris Hope
The Electric Toolbox - <a style='text-decoration: underline;' href="http://www.electrictoolbox.com/" target="_blank">http://www.electrictoolbox.com/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Howto disable directory browsing 
Back to top
Login to vote
user2790

External


Since: May 22, 2004
Posts: 2



(Msg. 3) Posted: Sun May 23, 2004 12:13 pm
Post subject: Re: Howto disable directory browsing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Is this what you are wanting?
 >
 > <Directory /path/to/acme.com>
 > Options -Indexes
 > </Directory>
 >
 > <Directory /path/to/acme.com/software>
 > Options Indexes
 > </Directory>

Yes !
Thank you Chris<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Howto disable directory browsing 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Enable directory browsing? - Hi I get the following error message when I call my public webdir without an index.html: --- Forbidden You don't have permission to access /~moeller/ on this server. Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.7 Server --- This worked in the past...

Turn off Directory Browsing / Indexing - RH 9.0 Apache 2.0.x I would like to turn off the ability of the general public to come to my web site and browse my directories. I know that putting a index.html inside each subdirectory will solve this but isn't there a configuration option to turn..

Howto redirect ? - If I have an JSP application with the name Joseph and I can reach it with index.jsp and I want to access via all the following URLs: http://lead-testserver/joseph/ http://lead-testserver/apps/joseph/ http://joseph.lead-testserver/app/..

howto change mydomain.com to www.mydomain.com - I want my index page to load as www.mydomain.com when a user enters mydomain.com. Can someone tell me how this is done? For example going to amazon.com will automatically change to www.amazon.com. many thanks in advance. regards, billc

?HOWTO redirect ChurchOfGod.Churches.org to www.Churc.. - Can you please describe a strategy for accomplishing the following? redirect http://ChurchOfGod.Churches.org to http:// www.Churches.org/ChurchOfGod
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]