RegEx VHost name and the default VHost

Valentin V. Bartenev vbart at
Wed Jan 23 20:22:03 UTC 2013

On Wednesday 23 January 2013 23:41:36 automatix wrote:
> Thank you for your reply!
> > server_name ~^(?<project>.+)\.(?<area>.+)\.loc$;
> Yes, you are right, it's the better way to extract values from a RegEx into
> vars.
> > Are you sure that your "default" is actually the default server
> configuration for the listening address:port?
> No, I'm not. How can I check it?

You should check the listen directive.

Please see this article:
and also the documentation:

  wbr, Valentin V. Bartenev


More information about the nginx mailing list