httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charlie Miller" <chuckie_...@hotmail.com>
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
</Directory>

<Files index.html>
allow from all
</Files>

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!
Chuck



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message