Welcome! Log In Create A New Profile

Advanced

Would "root" allow for captures?

April 10, 2009 01:24AM
i'd like to do something like:

server {
listen 80;
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?
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: 168
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready