This is a discussion on how to disable directory browsing...I am running apache 2,0.46 on windows 2000 within the Windows Web Servers forums, part of the Web Server and Related Forums category; help... how do I disable directory browsing thanx in advance Linh...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On 26 Jun 2003 18:52:13 -0700, The Other Guy responded to a post from
sdguy2007@yahoo.com (Mike) who wrote in comp.infosystems.www.servers.ms-windows: >help... > >how do I disable directory browsing > >thanx in advance > >Linh Options -Indexes in the appropriate directory container. For example, <Directory /> Options FollowSymLinks -Indexes AllowOverride None </Directory> Since this is the root directory, all subdirectories will inherit from this, so you can enable it for specific directories (e.g., Options +Indexes) as desired. From the hyttpd.conf file, for reference: # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None </Directory> # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # <Directory "C:/Apache2/htdocs"> .... </Directory> See http://httpd.apache.org/docs-2.0/mod/core.html#options for more info. Furthermore, ensure that there is an index.html file (or whatever is listed in the DirecotryIndex directive) so that it does cover any contents. That way you don't get a generic error message. HTH TOG -- ../configure --prefix=~/zyterion Not this guy or that guy, The Other Guy. This spot may contain a satirical comment or comedic source, and is meant to be funny. If you are easily offended, gullible or don't have a sense of humour we suggest you read elsewhere. |
| Thread Tools | |
| Display Modes | |
|
|