Welcome! Log In Create A New Profile

Advanced

Multiple server blocks using same port

Posted by PassTheMayo 
Multiple server blocks using same port
February 04, 2018 07:09PM
Hello. I have a problem with Nginx. I have three websites running, and all using the same 443 port for SSL. When I try to restart Nginx, I get an error like the following:

root@vps:~# nginx
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
nginx: [emerg] still could not bind()

Here is my nginx "default" file: https://hastebin.com/ejuwapafup.nginx

I had gotten it to work before on Ubuntu 16.04.3, but when I switched to Debian 9, it caused this issue.

If you can help, please do!



Edited 1 time(s). Last edit at 02/04/2018 07:10PM by PassTheMayo.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready