Https not working after trying to install SSL Cert

July 29, 2014 1.5k views

I followed the tutorial on installing an SSL Cert on Nginx (

However when I try to access my, nothing loads up. Anyone know what I did wrong?

I can provide more details if need be.

1 comment
2 Answers

Do you have any firewalling set up on your server? If so, you need to remember to open port 443. Your web server listens for https connections on that port. What's the output of the following commands:

sudo iptables -L
sudo netstat -plunt
  • sudo iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination

    sudo netstat -plunt
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0* LISTEN 807/sshd
    tcp 0 0* LISTEN 931/mysqld
    tcp 0 0* LISTEN 2458/nginx
    tcp6 0 0 :::22 :::* LISTEN 807/sshd
    tcp6 0 0 :::80 :::* LISTEN 2458/nginx

  • It doesn't look like nginx is listening on port 443. Have you restarted nginx after modifying its configuration?

    sudo service nginx restart

    Make sure the new virtualhost exists in /etc/nginx/sites-enabled.

Yeah I restarted it. I also made a new virtual host, still no luck.

  • Could you post a copy of your Nginx configuration from /etc/nginx/sites-enabled ?

Have another answer? Share your knowledge.