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?
Subject Author Posted

Regular expression used in server_name directive

Anonymous User March 03, 2013 12:43PM

Re: Regular expression used in server_name directive

Francis Daly March 03, 2013 02:14PM

Re: Regular expression used in server_name directive

Anonymous User March 03, 2013 02:21PM

Re: Regular expression used in server_name directive

Francis Daly March 03, 2013 03:06PM

Re: Regular expression used in server_name directive

Anonymous User March 03, 2013 03:16PM

Re: Regular expression used in server_name directive

Francis Daly March 03, 2013 04:40PM

Re: Regular expression used in server_name directive

Anonymous User March 03, 2013 06:17PM

Re: Regular expression used in server_name directive

Adrián Navarro March 03, 2013 02:26PM

Re: Regular expression used in server_name directive

Anonymous User March 03, 2013 02:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on August 08, 2016
Record Number of Guests: 386 on August 02, 2016
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready