Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

nginx: [emerg] bind() to :80 failed (99: Cannot assign requested address)

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
boggsy
Posts: 1
Joined: Sat May 04, 2019 2:39 pm

Os: CentOS 5x
Web: apache + nginx
nginx: [emerg] bind() to :80 failed (99: Cannot assign requested address)
  • Quote

Post by boggsy » Sat May 04, 2019 2:45 pm

Hi Guys

I'm having a little bit problem for this server.

Previously we have updated the server to new IP and having error to start the nginx service.

We have removed the old IP setting:

# rm -rf /etc/nginx/conf.d/IP.conf
# rm -rf /etc/httpd/conf.d/IP.conf

But still nginx not able to start.

Besides that, there is no other application listening to port 80.

Please help us on this.

Thank you
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: nginx: [emerg] bind() to :80 failed (99: Cannot assign requested address)
  • Quote

Post by dreiggy » Sat May 04, 2019 8:37 pm

Hi,

create back those files which you have removed:

# touch /etc/nginx/conf.d/IP.conf
# touch /etc/httpd/conf.d/IP.conf

httpd IP.conf content:

Code: Select all

Listen IP:8080
Listen IP:8443
nginx IP.conf content:

Code: Select all

server {
    listen       IP:80 default;
    server_name  _;
    #access_log  /var/log/nginx/IP.log main;
    location / {
        proxy_pass  http://IP:8080;
   }
}
And then restart httpd and nginx.
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password