Welcome! Log In Create A New Profile

Advanced

Re: Disabling basic_auth with rewrites

May 19, 2011 12:43PM
Maxim Dounin Wrote:
-------------------------------------------------------
>
> location / {
> auth_basic "protected";
> auth_basic_user_file
> /etc/nginx/htpasswd/protected;
> ...
>
> location ~ \.php$ {
> fastcgi_pass ...
> ...
> }
> }
>
> location /feeds/importer/ {
> ...
>
> location ~ \.php$ {
> fastcgi_pass ...
> ...
> }
> }

Thanks for the quick reply, nested locations are nice, but they do not help in this special case. A request to /feeds/importer/* has to be rewritten to /index.php?q=feeds/importer/* and that should not be protected. Is unprotecting a path with a special query possible at all?
Subject Author Posted

Disabling basic_auth with rewrites

klausi May 19, 2011 09:59AM

Re: Disabling basic_auth with rewrites

Maxim Dounin May 19, 2011 10:10AM

Re: Disabling basic_auth with rewrites

klausi May 19, 2011 12:43PM

Re: Disabling basic_auth with rewrites

Maxim Dounin May 19, 2011 02:12PM

Re: Disabling basic_auth with rewrites

Igor Sysoev May 19, 2011 03:18PM

Re: Disabling basic_auth with rewrites

Maxim Dounin May 20, 2011 04:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 284
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