RegEx VHost name and the default VHost

Valentin V. Bartenev vbart at nginx.com
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: http://nginx.org/en/docs/http/request_processing.html
and also the documentation: http://nginx.org/r/listen

  wbr, Valentin V. Bartenev

--
http://nginx.com/support.html
http://nginx.org/en/donation.html



More information about the nginx mailing list