Welcome! Log In Create A New Profile

Advanced

Re: Would "root" allow for captures?

April 11, 2009 01:30PM
On Thu, Apr 9, 2009 at 11:11 PM, Michael Shadle <mike503@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 :)
Subject Author Posted

Would "root" allow for captures?

mike April 10, 2009 01:24AM

Re: Would "root" allow for captures?

edogawaconan April 10, 2009 01:56AM

Re: Would "root" allow for captures?

Igor Sysoev April 10, 2009 01:58AM

Re: Would "root" allow for captures?

mike April 10, 2009 02:11AM

Re: Would "root" allow for captures?

mike April 11, 2009 01:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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