VestaCP - Ошибка при переносе на новый IP - nginx: emerg bind() to :80 failed (99: Cannot assign requested address)
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Ошибки вида:
# /etc/init.d/nginx restart nginx: [emerg] bind() to 5.6.2.6:80 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failed
# /etc/init.d/httpd restart Stopping httpd: [FAILED] Starting httpd: [Tue Jan 12 12:15:41 2016] [warn] NameVirtualHost 5.6.2.6:8080 has no VirtualHosts [Tue Jan 12 12:15:41 2016] [warn] NameVirtualHost 5.6.2.6:8443 has no VirtualHosts [Tue Jan 12 12:15:41 2016] [warn] NameVirtualHost 5.6.2.15:8443 has no VirtualHosts (99)Cannot assign requested address: make_sock: could not bind to address 5.6.2.6:8080 no listening sockets available, shutting down Unable to open logs [FAILED]
могут возникнуть при переносе доменов на новый IP. Нужно проверить перенос по пунктам:
1) Добавить новый IP в VestaCP --> IP по адресу https://ip:8083/list/ip/
2) Поменять IP для WEB доменов в VestaCP: https://ip:8083/list/web/
3) Удалить старые конфиги Apache/nginx если они есть: # rm -rf /etc/nginx/conf.d/5.6.2.15.conf # rm -rf /etc/httpd/conf.d/5.6.2.15.conf
4) Перезапустить nginx && apache: # /etc/init.d/nginx restart # /etc/init.d/httpd restart