Welcome! Log In Create A New Profile

Advanced

Re: Re[4]: .htaccess issues

February 14, 2012 11:48AM
I'll take a look in lua and auth_request module.

Thanks for the suggestions. It was helpful!

On Tue, Feb 14, 2012 at 12:52 PM, António P. P. Almeida <appa@perusio.net>wrote:

> On 14 Fev 2012 07h48 WET, nginxyz@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:
>
> <snip>
>
> Just to say that it works also with the cache on private:
>
> location /private/ {
> error_page 403 /403.html;
> auth_request /auth;
> # usual cache stuff
> proxy_pass http://backend;
> }
>
> location = /auth {
> proxy_pass ...
> proxy_pass_request_body off;
> proxy_set_header Content-Length "";
> proxy_set_header X-Original-URI $request_uri;
> # It's *here* that you cannot cache...
> }
>
> The previous was just an example where the cache location was really
> private. It cannot be accessed directly.
>
> I suspect the reason it cannot be cached is simply because not only it
> would defeat the authorization purpose as well due to the fact that
> this module doesn't care about the request body. It only deals with
> the headers.
>
> --- appa
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

.htaccess issues

Guilherme February 10, 2012 12:10PM

Re: .htaccess issues

António P. P. Almeida February 10, 2012 12:34PM

Re: .htaccess issues

Guilherme February 10, 2012 12:58PM

Re: .htaccess issues

António P. P. Almeida February 10, 2012 01:10PM

Re: .htaccess issues

Adrián Navarro February 10, 2012 01:10PM

Re: .htaccess issues

Guilherme February 10, 2012 02:42PM

Re: .htaccess issues

António P. P. Almeida February 10, 2012 03:00PM

Re: .htaccess issues

geberhart February 12, 2012 10:34AM

Re: .htaccess issues

António P. P. Almeida February 13, 2012 12:58PM

Re[4]: .htaccess issues

Max February 14, 2012 02:50AM

Re: Re[4]: .htaccess issues

António P. P. Almeida February 14, 2012 09:34AM

Re: Re[4]: .htaccess issues

António P. P. Almeida February 14, 2012 09:54AM

Re: Re[4]: .htaccess issues

geberhart February 14, 2012 11:48AM

Re[4]: .htaccess issues

Max February 12, 2012 08:06PM

Re[4]: .htaccess issues

Max February 12, 2012 08:10PM

Re[2]: .htaccess issues

Max February 10, 2012 03:10PM

Re: Re[2]: .htaccess issues

geberhart February 12, 2012 10:38AM

Re: .htaccess issues

Francis Daly February 12, 2012 11:50AM

Re[2]: .htaccess issues

Max February 13, 2012 04:14PM

Re: Re[2]: .htaccess issues

António P. P. Almeida February 13, 2012 04:46PM

Re[6]: .htaccess issues

Max February 14, 2012 07:38PM

Re: .htaccess issues

Piotr Sikora February 14, 2012 09:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready