Welcome! Log In Create A New Profile

Advanced

Re: Regular expression used in server_name directive

Francis Daly
March 03, 2013 02:14PM
On Sun, Mar 03, 2013 at 12:43:57PM -0500, justin wrote:

Hi there,

> I am using a regular expression with a capture group in my server_name
> directive. It looks like:
>
> server_name (?<account>.+)\.mydomain\.com$

http://nginx.org/r/server_name for details of how the matching server{}
block is chosen.

> 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?

Make a different server{} block that matches web3.mydomain.com.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready