Regular expression used in server_name directive

Adrián Navarro adrian at navarro.at
Sun Mar 3 19:24:49 UTC 2013


Just remove the <account> part and it will act as only matching regex. 



------Original Message------
From: justin
Sender: nginx-bounces at nginx.org
To: nginx at nginx.org
ReplyTo: nginx at nginx.org
Subject: Re: Regular expression used in server_name directive
Sent: Mar 4, 2013 04:21

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?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236870,236876#msg-236876

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


Sent from my BlackBerry



More information about the nginx mailing list