Author Topic: nginx: [emerg] bind() to 80.xxx.xx.xx:80 failed (99: Cannot assign requested add  (Read 4069 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Hi Everyone,
I have started to get the following error with Nginx, Apache & Varnish install. If i rebuild server to just Apache it all works perfectly fine as soon as i add nginx in the mix it keep getting this error?

-- Unit nginx.service has begun starting up.
Apr 03 14:28:35 hostname nginx[17898]: nginx: [emerg] bind() to 80.xxx.xx.xx:80 failed (99: Cannot assign requested address)
Apr 03 14:28:35 hostname systemd[1]: nginx.service: control process exited, code=exited status=1
Apr 03 14:28:35 hostname systemd[1]: Failed to start nginx - high performance web server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Hidden the obvious information for security reasons.

Thanks

Bossmanuk

Offline
*
when you activate nginx try to check what is working on the port 80 (probably apache)

then check all config file in  this two folder to find were issue is exactly

/usr/local/apache/conf.d/
/usr/local/apache/conf/

example:
Code: [Select]
cd /usr/local/apache/conf.d/
grep -r ":80" *
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
After doing what you suggested these are the results

Code: [Select]
cd /usr/local/apache/conf.d/
grep -r ":80" *

Output

Code: [Select]
vhosts/mydomain.co.uk.conf:<VirtualHost 80.xxx.xxx.xx:80>

Code: [Select]
cd /usr/local/apache/conf/
grep -r ":80" *

Output

Code: [Select]
extra/httpd-vhosts.conf:<VirtualHost *:80>
extra/httpd-vhosts.conf:<VirtualHost *:80>
httpd.conf:#Listen 12.34.56.78:80
httpd.conf:#ServerName www.example.com:80
httpd.conf_backup:#Listen 12.34.56.78:80
httpd.conf_backup:#ServerName www.example.com:80
httpd.conf.bak:#Listen 12.34.56.78:80
httpd.conf.bak:#ServerName www.example.com:80
original/extra/httpd-vhosts.conf:<VirtualHost *:80>
original/extra/httpd-vhosts.conf:<VirtualHost *:80>
original/httpd.conf:#Listen 12.34.56.78:80
original/httpd.conf:#ServerName www.example.com:80
sharedip.conf:<VirtualHost 80.xxx.xxx.xx:80>

Offline
*****
Hi, try to rebuild VirtualHosts via CWPadmin: WebServers Settings => WebServers Main Conf => Rebuild all vhosts on save
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services