nginx listen to $hostname doesn't work, is it supported?

coral nginx-forum at nginx.us
Thu Nov 29 21:01:37 UTC 2012


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.

Thanks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,233398,233398#msg-233398



More information about the nginx mailing list