nginx: [warn] conflicting server name

Предупреждение при запуске nginx:

nginx: [warn] conflicting server name "YOURIPADDRESS" on YOURIPADDRESS:80, ignored
nginx: [warn] conflicting server name "YOURIPADDRESS" on YOURIPADDRESS:80, ignored
nginx: [warn] conflicting server name "YOURIPADDRESS" on YOURIPADDRESS:80, ignored

nginx: [emerg] bind() to YOURIPADDRESS:80 failed (98: Address already in use)
nginx: [emerg] bind() to YOURIPADDRESS:80 failed (98: Address already in use)
nginx: [emerg] bind() to YOURIPADDRESS:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
already running.

Решение:
# cd /etc/nginx/vhosts
# perl -pi -w -e 's/server_name(.*) YOURIPADDRESS/server_name$1/g;' *

Now go to WHM > Tweak settings and change Apache non-SSL IP/port to 0.0.0.0:8081

Добавить комментарий