3 messages in ru.sysoev.nginxauth_basic & avoiding duplication in ...
FromSent OnAttachments
Adriano NagelNov 12, 2008 2:05 pm 
mikeNov 12, 2008 2:13 pm 
Adriano NagelNov 13, 2008 5:01 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:auth_basic & avoiding duplication in conf fileActions...
From:Adriano Nagel (adri@peabirus.com.br)
Date:Nov 12, 2008 2:05:29 pm
List:ru.sysoev.nginx

Hi,

Sorry if this is a faq. I started using v0.6.32 and I have to turn on / off auth based on the url.

I have something like:

server { auth_basic ...

location ~* jpeg { }

location /home/return { auth_basic off }

location / { several_config_lines } }

The problem is, I would like "involved_config" to apply to "/home/return" as well, but I don't want to copy it there.

I can't move it to server, because it shouldn't apply to other location directives (eg jpeg).

Is there a clean way around it?

Thanks,