HTTP auth from outside + allow from local
Been a while but have a few scripts that need to hit a website that's local to that network, but also a public site. Currently there is an .htaccess in that folder with this lockdown;
AuthType Basic
AuthName "Restricated"
Require valid-user
Now, can I break that somehow and say (here is my english translation)
<outside>
AuthType Basic
AuthName "Restricted"
Require valid-user
</outside>
<inside>
Allow from all
</inside>
Right now I try to curl from a local (or any) machine, this is what comes back;
<h1>Authentication required!</h1>
This server could not verify that you are authorized to access
the URL "/".
You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
So what's the easiest way around this to allow the local to hit the site... thanks.
Last edited by sir-lancealot; 07-29-2010 at 01:07 PM.
|