.htaccess issues

António P. P. Almeida appa at perusio.net
Mon Feb 13 17:57:23 UTC 2012

On 12 Fev 2012 15h32 WET, guilherme.e at gmail.com wrote:

You can use the auth_request module for that then. 


I've replicated the mercurial repo on github:


It involves setting up a location that proxy_pass(es) to the Apache
upstream and returns 403 if not allowed to access.

Be careful with the X-Forwarded-For header and how it's treated on the
Apache side so that you get a real correspondence with the client,
thus making the authorization procedure reliable.

--- appa

More information about the nginx mailing list