nginx listen to $hostname doesn't work, is it supported?
Joshua Zhu
zhuzhaoyuan at gmail.com
Fri Nov 30 05:32:12 UTC 2012
Hi,
On Fri, Nov 30, 2012 at 5:01 AM, coral <nginx-forum at nginx.us> wrote:
> n my nginx conf file, I have :
>
> listen 80;
> server_name $hostname;
>
> if I do netstat I see that it is listening on 0.0.0.0:80 , is there any
> workaround in nginx.conf , to make it listen to $hostname:80 ? where
> $hostname is coming from system ?
>
> I tried multiple combinations with no success so far.
>
Why not just use 'localhost'? For example:
listen localhost:80;
Regards,
--
Joshua Zhu
Senior Software Engineer
Server Platforms Team at Taobao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121130/f9c83ed2/attachment.html>
More information about the nginx
mailing list