I have a test site set up as a virtual host in my Apache2 config file. It already has a directive for the root folder that first only authorizes access from a specific set of IP addresses, and then only after the user is also authenticated by Basic HTTP Auth.
I would now like to add 127.0.0.1 to the list of allowed IP addresses (the application needs to make a bunch of remote requests to itself), but to skip authentication for any requests from there. How can I do this?
Listen 8001
<VirtualHost *:8001>
DocumentRoot "C:/inetpub/apacheroot/test.mysite.com/www"
ServerName test.mysite.com
ErrorLog "logs/test.mysite.com-error.log"
CustomLog "logs/test.mysite.com-access.log" common
<Directory "/">
Order deny,allow
Deny from all
# user a user b user c user d user e
Allow from x.x.x.31 x.x.x.145 x.x.x.113 x.x.x.249 x.x.x.253
AuthType Basic
AuthName "Test Server"
AuthBasicProvider file
AuthUserFile "C:\Program Files\Apache Software Foundation\Apache2.2\conf\passwd"
AuthGroupFile "C:\Program Files\Apache Software Foundation\Apache2.2\conf\groups"
Require group Test
</Directory>
</VirtualHost>