.htaccess issues
António P. P. Almeida
appa at perusio.net
Tue Feb 14 14:33:05 UTC 2012
On 14 Fev 2012 07h48 WET, nginxyz at mail.ru wrote:
> Have you ever actually used the auth_request module? Or have you at
> least read the part of the auth_request module README file where
> Maxim wrote:
location /private {
}
location /private/ {
error_page 403 /403.html;
auth_request /auth;
try_files /cache?q=$uri =404; # there's a bug in 1.1.14 this won't work
}
location = /auth {
proxy_pass ...
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
}
location /cache {
internal;
# usual cache stuff
proxy_pass http://backend$arg_q;
}
It works for me here. I can post the debug log if necessary.
--- appa
More information about the nginx
mailing list