Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Regular expression used in server_name directive (8 replies)

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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>