Is it possible to get apache 1.3 to require valid user for the whole site (protect root directory) while allowing anonymous access to the index file still?
I have managed it so that you can get to site.com/index.html fine (specifying the file to load), but simply going to site.com asks for authentication.
The idea is visitors going to site.com would be presented with a webpage informing them of how to get a username and password, and any other pages within the site then require this password.
my config:
<Directory /var/www>
Order Deny,Allow
Deny from all
Auth details...
require valid-user
Allow from 192.168.1
Satisfy Any
<Files index.html>
Allow from all
</Files>
</Directory>
Apache need to check for the index file BEFORE checking the auth conditions i guess???
any help would be great!
I have managed it so that you can get to site.com/index.html fine (specifying the file to load), but simply going to site.com asks for authentication.
The idea is visitors going to site.com would be presented with a webpage informing them of how to get a username and password, and any other pages within the site then require this password.
my config:
<Directory /var/www>
Order Deny,Allow
Deny from all
Auth details...
require valid-user
Allow from 192.168.1
Satisfy Any
<Files index.html>
Allow from all
</Files>
</Directory>
Apache need to check for the index file BEFORE checking the auth conditions i guess???
any help would be great!