Nginx catching all domains without wildcard
Xavier Cardil Coll
info at elsitar.com
Mon Dec 28 02:52:51 UTC 2015
My Nginx config is catching all subdomains without specifying a wildcard. I
have created an special config for each subdomain, but seems that all
subdomains pass trough the main domain configuration. I have discovered
this by removing the subdomains configuration files from nginx.conf and
watching how it still catches all the subdomains, so when I send a request
to uk.domain.com, instead of Nginx catching the subdomain configuration,
goes through the main domain configuration. This is causing trouble with
applying mod_pagespeed individually to each of the sites and also managing
the GA universal code.
The config for the main domain is this :
http config :
If I haven't setup a wildcard, how come the main domain config is catching
all subdomains ??
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx