My bad, stupid mistake, forgot the ^.
Working fine now. Thanks.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236870,236887#msg-236887
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
On Sun, Mar 03, 2013 at 03:16:09PM -0500, justin wrote:
Hi there,
> server_name ~^(?.+)\.mydomain\.com$;
>
> Works.
Correct.
Now compare that line with the server_name lines in the previous mails.
> This may be a bug with nginx?
No.
> The new regular expression is valid and should work.
Ye
No, simply doing
server_name ~^(?.+)\.mydomain\.com$;
Works. This may be a bug with nginx? The new regular expression is valid and
should work.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236870,236881#msg-236881
___
nginx mailing list
n
On Sun, Mar 03, 2013 at 02:21:10PM -0500, justin wrote:
Hi there,
> I actually have a working regular expression which should work now:
>
>server_name ^(?!web3\.)(?.+)\.mydomain\.com$;
http://nginx.org/r/server_name
Pay particular attention to the line that begins "It is also possible
to u
I need a variable set that I use in the rest of the server {} block.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,236870,236878#msg-236878
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Just remove the part and it will act as only matching regex.
--Original Message--
From: justin
Sender: nginx-boun...@nginx.org
To: nginx@nginx.org
ReplyTo: nginx@nginx.org
Subject: Re: Regular expression used in server_name directive
Sent: Mar 4, 2013 04:21
I actually have a working
I actually have a working regular expression which should work now:
server_name ^(?!web3\.)(?.+)\.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.ngin
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 (?.+)\.mydomain\.com$
http://nginx.org/r/server_name for details of how the matching server{}
block is chose
I am using a regular expression with a capture group in my server_name
directive. It looks like:
server_name (?.+)\.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 no