Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Nov 27, 2024, 06:50 AM

Title: Nginx fails to fails: "nginx: [emerg] bind() to 203.0.113.2:443 failed
Post by: mahesh on Nov 27, 2024, 06:50 AM
Question:
Nginx fails to fails: "nginx: [emerg] bind() to 203.0.113.2:443 failed (99: Cannot assign requested address)"
Symptoms

Cause
The file /etc/nginx/plesk.conf.d/server.conf still contains the 203.0.113.2 IP address.

Resolution
Recreate Nginx configuration file as below:

1.Connect to the server via SSH

2.Disable Nginx with the following command:

#/usr/local/psa/admin/sbin/nginxmng --disable
3.Enable Nginx back:

#/usr/local/psa/admin/sbin/nginxmng --enable