Just remove the <account> part and it will act as only matching regex.
------Original Message------ From: justin Sender: [email protected] To: [email protected] ReplyTo: [email protected] 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 [email protected] http://mailman.nginx.org/mailman/listinfo/nginx Sent from my BlackBerry _______________________________________________ nginx mailing list [email protected] http://mailman.nginx.org/mailman/listinfo/nginx
