httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charlie Miller" <>
Subject [users@httpd] Deny by default and mod_dir
Date Tue, 22 Feb 2005 21:35:00 GMT
I'm trying to set up a web server which denies all files by default, then 
explicitly allows access to particular files I'd like to serve.  A relevant 
excerpt from httpd.conf is:

<Directory "/usr/local/apache2/htdocs">
   Options Indexes FollowSymLinks
   AllowOverride None
       Order deny,allow
       Deny from all

<Files index.html>
allow from all

DirectoryIndex index.html index.html.var

This works great when accessing http://mysite/index.html. However, if I just 
access http://mysite or http://mysite/ I get an access forbidden (403). In 
the case where htdocs is "allow from all", if I request http://mysite, I get 
the index.html file. Any ideas on how to give access to http://mysite/ so 
that it can serve the allowed index.html. Will mod_rewrite solve the 
problem?  TIA!

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message