Hi,<br><br><div class="gmail_quote">On Fri, Nov 30, 2012 at 5:01 AM, coral <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
n my nginx conf file, I have :<br>
<br>
listen 80;<br>
server_name $hostname;<br>
<br>
if I do netstat I see that it is listening on <a href="http://0.0.0.0:80" target="_blank">0.0.0.0:80</a> , is there any<br>
workaround in nginx.conf , to make it listen to $hostname:80 ? where<br>
$hostname is coming from system ?<br>
<br>
I tried multiple combinations with no success so far.<br></blockquote><div><br></div><div>Why not just use 'localhost'? For example:</div><div> listen localhost:80;</div><div><br></div><div>Regards,</div><div>
<br></div></div>-- <br>Joshua Zhu<br>Senior Software Engineer<br>Server Platforms Team at Taobao<br>