gooncorp
10-23-2007, 01:24 PM
OK, here's my problem:
I have a server connected to a lan, which can also be accessed from the internet in general. I currently have it set up so that a password is required to access a folder, using the following code in httpd.conf:
#set passwd for /share
<Directory /var/www/share>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/apache/passwd
Require valid-user
</Directory>
This works fine, a password is needed to get into the directory from anywhere. However, I would like not to have to enter the password from any computer connected to the LAN, as I know all users there are trusted (and know the password anyway). So, what I want to do is allow any connection from 192.168.1.* in without a password, and require a password from any other IP. Does anyone know how to do this?
Thanks.
I have a server connected to a lan, which can also be accessed from the internet in general. I currently have it set up so that a password is required to access a folder, using the following code in httpd.conf:
#set passwd for /share
<Directory /var/www/share>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /etc/apache/passwd
Require valid-user
</Directory>
This works fine, a password is needed to get into the directory from anywhere. However, I would like not to have to enter the password from any computer connected to the LAN, as I know all users there are trusted (and know the password anyway). So, what I want to do is allow any connection from 192.168.1.* in without a password, and require a password from any other IP. Does anyone know how to do this?
Thanks.