how to disable directory browsing...I am running apache 2,0.46 on windows 2000

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...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2003
Mike
 
Posts: n/a
Default how to disable directory browsing...I am running apache 2,0.46 on windows 2000

help...

how do I disable directory browsing

thanx in advance

Linh
  #2 (permalink)  
Old 06-27-2003
The Other Guy
 
Posts: n/a
Default Re: how to disable directory browsing...I am running apache 2,0.46 on windows 2000

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0