<div dir="ltr"><div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;clear:both;color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:19.5px">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 <a href="http://uk.domain.com">uk.domain.com</a>, 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.</p></div><div><span style="color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px">The config for the main domain is this :</span><br></div><div><span style="color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;font-size:15px;line-height:19.5px"><br></span></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><a href="http://pastebin.com/4AvGgRCc">http://pastebin.com/4AvGgRCc</a></span></font><br></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><br></span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px">http config :</span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><br></span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><a href="http://pastebin.com/CkJLHyHH">http://pastebin.com/CkJLHyHH</a></span><br></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><br></span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px">If I haven't setup a wildcard, how come the main domain config is catching all subdomains ??</span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px"><br></span></font></div><div><font color="#222426" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px;line-height:19.5px">Thanks</span></font></div><div class="gmail_signature"><div dir="ltr"><div><div></div><div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><img src="https://docs.google.com/uc?export=download&id=0B3XfePYC7r00QkVpTzFuYWx4NUU&revid=0B3XfePYC7r00amZwVHAxMGVxeUNhUFNzSGhlRUhadFBjbjlRPQ" width="200" height="87"><br></div></div></div></div></div>
<img width="0" height="0" class="mailtrack-img" src="https://mailtrack.io/trace/mail/344bef266d8d86ccfce9f3485f455fcc25546780.png"></div>