Would "root" allow for captures?

Michael Shadle mike503 at gmail.com
Fri Apr 10 10:11:19 MSD 2009

2009/4/9 Igor Sysoev <is at 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.

really? why is that? seems like it should be pretty straightforward,
but you know your code the best.

> The "root" supports captures too.

just figured that out - excellent :)

More information about the nginx mailing list