Web Hosting Talk







View Full Version : directory browsing


matt2kjones
07-30-2002, 11:43 AM
ok, i have apache 1.3.26 installed, and the latest version of webmin.

i have been playing around with webmin, but am haveing a problem with something

i have a folder on the server which can be found at www.thedigitaldream.co.uk/matt/

but how do you set up apache using webmin to allow directory browsing, as all it says when i goto www.thedigitaldream.co.uk/matt/ is forbidden, you do not have permission to access /matt/

thanx in advance

matt

Lagniappe-labgeek
07-30-2002, 12:20 PM
Assuming your using Apache, inside of httpd.conf add:

<Directory [physical path to directory]>
Options Indexes
</Directory>

note - it is the physical path not the logical for example if it's abc.com/mydir/ then the path may actually be something like
/wwwroot/abc/docs/mydir

not /mydir

The root path will vary from server to server, but you should get the idea.

Be sure the Directory tag in the proper virtualserver section if you have multiple sites on the box. Also you'll need to stop and restart apache to take effect.

do a "apachectl configtest" first to test that you haven't messed up the httpd.conf file. then "apachectl restart" if ok

If you don't have access to httpd.conf, you can place this into a .htaccess file in the directory.

See the following for more info on using .htaccess files:
http://apache-server.com/tutorials/ATusing-htaccess.html

matt2kjones
07-30-2002, 02:56 PM
thanx, got it sorted now :)