I have Apache 2.2.x running on FreeBSD 7.2
I currently have Apache prompting for a username and password which is read from a text file, while allowing a certain IP addresses to access a site without logging on.
I would like to retain this function, but add in the ability to have Apache fall back to the system's user accounts (through PAM) if the user does not exit in the text file.
EXAMPLE 1:
pperson is a system user
pperson is NOT in the .htpassword file
pperson is NOT in the allowed IP range
pperson can log on to the website using his FreeBSD username and password.
EXAMPLE 2:
ssomeone is a system user
ssomeone is in the .htpassword file
ssomeone is NOT in the allowed IP range
ssomeone can log on to the website using the username/password in the .htpassword file.
Below are my current Apache directives