Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Nginx fails to restart after enabling SSL Support and website goes down #900
Operating System (OS/VERSION):
Debian x64 8.6
core package Version:0.9.8 (amd64) Release:16
Installed Software (what you got with the installer):
Steps to Reproduce:
After Enabling SSL Support and entering required keys, and then hitting Save, the settings get saved but the site goes down and nginx fails to restart.
Nginx error log gives the following:
BUT if I reboot the server, Nginx starts up and I can access the site with both 'http' and with 'https' (certificate is successfully installed) but I get 500 Internal Server on the page and 502 Bad Gateway in browser console. This error goes away if I disable the SSL support from VestaCP panel and reboot the server.
@dpeca My bad. I rechecked. I actually used this script
@dpeca I have updated the issue. Please have a look at it.
Can this be because of of corrupt configuration or anything? I haven't manually modified any vesta configurations but I did use
I feel something other is using your 443 port, so nginx can't bind it.
However, I'm sure this is not VestaCP issue, and I'll close this ticket.
@anton-reutov I did that. (Before I was rebooting, it had the same effect.) Doing that would put the site up, get both
@dpeca It looks nginx itself is listening to the port. What could be causing 502? I had done clean Nginx + Apache install and haven't messed up with any nginx or apache configuration.
@rajbdilip I just fixed it.
I commented out the 3 IPs that were using port 443 in my "/etc/apache2/ports.conf" file, restarted apache and nginx, and everything is working fine right now.
I don't really know why there were entries in "ports.conf", but it seems that it was useless for my setup.
I hope it helps!