5 messages in ru.sysoev.nginxRe: Would "root" allow for captures?
FromSent OnAttachments
Michael ShadleApr 9, 2009 10:23 pm 
Edho P AriefApr 9, 2009 10:56 pm 
Igor SysoevApr 9, 2009 10:58 pm 
Michael ShadleApr 9, 2009 11:10 pm 
Michael ShadleApr 11, 2009 10:30 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:Re: Would "root" allow for captures?Actions...
From:Michael Shadle (mike@gmail.com)
Date:Apr 11, 2009 10:30:04 am
List:ru.sysoev.nginx

On Thu, Apr 9, 2009 at 11:11 PM, Michael Shadle <mike@gmail.com> wrote:

2009/4/9 Igor Sysoev <is@rambler-co.ru>:

    server_name ~^(.+)\.user\.foo\.com$;

awesome! it works.

   if ($1 == 'something) {       require include.conf;    }

This i ssome kind of configuration macro, but it's currently not easy to implement this.

This would also work

include /etc/nginx/$1.conf;

but I would want to test for the existence first.

if (-f /etc/nginx/$1.conf) { include /etc/nginx/$1.conf; }

so it is not easy to do if ($1 == 'something') {} ? if so, then we just need to say that include is allowed inside of an if block :)