• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Nginx can't bind to 192.168.1.1:80....

apaunovski

Basic Pleskian
So, my Plesk server has 2 IP's...

One external and shared - 95.xxxxxxxxxx
One internal for communication with the backup server - 192.168.1.1

Today I tried to change NGINX configuration for a website and I get an error - "Nginx failed to bind to IP 192.168.1.1:80"...

Why is Nginx trying to bind to that internal IP at all?

I use it to connect my Plesk server to my backup server... It's not for the world and website serving.

How do I solve that? What do I do?
 
Here is the exact error message


Invalid nginx configuration: nginx: [emerg] bind() to 192.168.1.1:80 failed (99: Cannot assign requested address) nginx: configuration file /etc/nginx/nginx.conf test failedUnable to use the current nginx configuration file and to rollback to the previous version of the file because they both contain invalid configuration.
 
The issue has been resolved, but I have to make a few contributions. I tried it too, but I got an error on some pages, especially the 192.168.1.1 page was quite challenging for me. The interface on my modem is quite troublesome, so I found this page by following topics like you. 192.168.1.1 is difficult for Ngix but I was able to solve this by assigning a NAT page. If you take a careful look at the admin login page, you will be able to recognize all I have said very easily. thanks for your support
 
Back
Top