Welcome! Log In Create A New Profile

Advanced

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

November 29, 2012 04:01PM
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
SubjectAuthorPosted

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

coralNovember 29, 2012 04:01PM

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

Joshua ZhuNovember 30, 2012 12:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready