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?