Would "root" allow for captures?
Edho P Arief
edhoprima at gmail.com
Fri Apr 10 09:56:24 MSD 2009
perhaps this?
On Fri, Apr 10, 2009 at 12:24 PM, Michael Shadle <mike503 at gmail.com> wrote:
> i'd like to do something like:
>
> server {
> listen 80;
> server_name *.user.foo.com;
server_name (.*?).user.foo.com;
> root /home/user/web/$1;
> }
>
> this would be basically required too:
>
> server {
> listen 80;
> server_name *.user.foo.com;
> root /home/user/web/$1;
> if ($1 == 'something) {
> require include.conf;
> }
> }
>
> it would be nice if i could assign "user" as a variable too. however,
> that would be a double bonus.
>
> i think alias allows captures, but i would need to define
> DOCUMENT_ROOT then as well.
>
> ideas?
>
>
--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the nginx
mailing list