[CentOS] nginx conflicting server name ignored warning

Tim Dunphy

bluethundr at gmail.com
Mon Jun 1 15:55:23 UTC 2015


Guys,

 I'm getting a strange warning whenever I do a config test or a restart of
nginx 1.0.15

[root at aoadbld00032lb nginx]# nginx -t
nginx: [warn] conflicting server name "aoadbld00032lb.company.com" on
0.0.0.0:80, ignored
nginx: [warn] conflicting server name "logs.pcf.company.com" on 0.0.0.0:80,
ignored
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

And as far as I can tell I only have one server_name directive in the whole
config:

[root at aoadbld00032lb nginx]# grep -r server_name *
conf.d/kibana.conf:    server_name   aoadbld00032lb.company.com
logs.pcf.company.com;
fastcgi_params:fastcgi_param  SERVER_NAME        $server_name;
scgi_params:scgi_param  SERVER_NAME        $server_name;
uwsgi_params:uwsgi_param  SERVER_NAME        $server_name;

It's more of an annoyance than any kind of real problem, as far as I can
tell. Because the site I'm trying to put up with it appears to be working.
I'm using this host as a logstash server.

But does anybody have any ideas as to why this may be happening? Or of any
potential problems that this may cause?

Thanks,
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B



More information about the CentOS mailing list