Welcome! Log In Create A New Profile

Advanced

Regular expression used in server_name directive

Anonymous User
March 03, 2013 12:43PM
I am using a regular expression with a capture group in my server_name directive. It looks like:

server_name (?<account>.+)\.mydomain\.com$

The problem is that I want to expand it slightly and say anything except web3.mydomain.com. I.E.

something.mydomain.com matches, but web3.mydomain.com does not match.

How is this possible?
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: 96
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