I'm using HTTPS+basic auth (AuthType Basic ... Require valid-user) to protect a resource, but I'd like to allow connections from localhost through, even if they aren't authenticated.
What's the simplest way of doing that?
|
I'm using HTTPS+basic auth ( What's the simplest way of doing that? |
|||||||
|
|
You can tell apache to allow connections from specific IP addresses, like this:
If you add that to your authentication scheme it will allow any IP address in the 192.168.0.1 - 192.168.0.254 range to access your content. A full example may look like this (I am using digest, just substitute with your basic code):
|
|||||
|