Welcome! Log In Create A New Profile

Advanced

Problem with multiple websites

Posted by PassTheMayo 
Problem with multiple websites
November 02, 2017 06:30PM
I currently own two websites (passthemayo.space and botlist.space). I want to run both of them on Nginx through SSL. I currently have SSL certificates for both of them, and ready to use, but I have a problem. The two websites are using port 443, and one is unable to start because the other is already using the port. Here is all of my configs:

default (passthemayo.space): https://hastebin.com/oqexuvaqew.nginx
haste (haste.passthemayo.space): https://hastebin.com/oromonisow.nginx
list (botlist.space): https://hastebin.com/apecanobok.nginx

When I try to use that, I get the following error: https://hastebin.com/avikalexib.log

Hope you guys can help me fix this. Thanks!
Re: Problem with multiple websites
November 03, 2017 03:24AM
One nginx can listen on 443 and handle multiple websites via multiple server {} blocks, you can't have two nginx instances using the same port, merge all sites in one instance.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Problem with multiple websites
November 03, 2017 03:25AM
Thanks, but I have actually already fixed it. Someone in a discord channel had helped me.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 77
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready