Welcome! Log In Create A New Profile

Advanced

Re: [warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored

Sergey Shepelev
December 08, 2010 12:14PM
2010/12/8 weqq <nginx-forum@nginx.us>:
> Здравствуйте. выдает вот такую вот
> вестчь:
>
> fera@fera-desktop:/etc/nginx$ sudo nginx -t
> [b][warn]: conflicting server name "korp" on 0.0.0.0:80, ignored
> [warn]: conflicting server name "spma" on 0.0.0.0:80, ignored
> [warn]: conflicting server name "test" on 0.0.0.0:80, ignored[/b]
> the configuration file /etc/nginx/nginx.conf syntax is ok
> configuration file /etc/nginx/nginx.conf test is successful
>
> долго гуглил, ничего не нашел..  что за
> warning  и что с ним делать? как победить?
> заранее благодарен!...
>
[...]
>        include /etc/nginx/conf.d/*.conf;
>        include /etc/nginx/sites-enabled/*;
> }

В sites-enabled ссылки на файлы в conf.d.
Вы дважды инклюдите одни и те же конфиги. Как следствие - серверы
korp, spma и test описываются два раза, то есть conflicting server
name.
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
SubjectAuthorPosted

[warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored

weqqDecember 08, 2010 07:15AM

Re: [warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored

Sergey ShepelevDecember 08, 2010 12:14PM

Re: [warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored

weqqDecember 09, 2010 02:55AM

Re: [warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored

weqqDecember 09, 2010 08:43AM

Re: [warn] 7260#0: conflicting server name "test" on 0.0.0.0:80, ignored

Sergey ShepelevDecember 09, 2010 06:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
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