Welcome! Log In Create A New Profile

Advanced

Re: Regular expression used in server_name directive

Anonymous User
March 03, 2013 02:21PM
I actually have a working regular expression which should work now:

server_name ^(?!web3\.)(?<account>.+)\.mydomain\.com$;

But for some odd reason when I restart nginx, I am getting:

nginx: [emerg] unknown "account" variable

This should work though, right?
SubjectAuthorPosted

Regular expression used in server_name directive

Anonymous UserMarch 03, 2013 12:43PM

Re: Regular expression used in server_name directive

Francis DalyMarch 03, 2013 02:14PM

Re: Regular expression used in server_name directive

Anonymous UserMarch 03, 2013 02:21PM

Re: Regular expression used in server_name directive

Francis DalyMarch 03, 2013 03:06PM

Re: Regular expression used in server_name directive

Anonymous UserMarch 03, 2013 03:16PM

Re: Regular expression used in server_name directive

Francis DalyMarch 03, 2013 04:40PM

Re: Regular expression used in server_name directive

Anonymous UserMarch 03, 2013 06:17PM

Re: Regular expression used in server_name directive

Adrián NavarroMarch 03, 2013 02:26PM

Re: Regular expression used in server_name directive

Anonymous UserMarch 03, 2013 02:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready