Hi All,<div><br></div><div>I have created a virtual host where I want to handle unlimited top-level domains.</div><div><br></div><div>Domains are registered elsewhere and I am using &quot;A record&quot; pointing to my nginx server&#39;s dedciated IP at respective domains registrars/name-servers.</div>

<div><br></div><div>I have following in my vhost config file...</div><div><br></div><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">server {</font></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        listen          80 default;</font></blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">                </font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">server_name</font><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        </font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">_ &quot;&quot;;</font></blockquote>

<div><br></div><div>Everything is working expect some minor issues.</div><div><ol><li>Logs shows server name as &quot;_&quot;</li><li>Cookies and some scripts where host is supposed to be host in URL, it is set to &quot;_&quot;</li>

</ol></div><div>Its not breaking anything. And everything is working cool.</div><div>But is there anyway to have server_name set to &quot;host&quot;name in HTTP request?</div><div><br></div><div>Thanks,</div><div>-Rahul</div>

</div>