Development System & Network

Ubuntu Server / Apache not listening to port 443

I’m having trouble reaching my site through https after executing the certbot script. That process finished without issues, the message was:

Congratulations, you have succesfully enabled

However, when I test my configuration at SSLlabs, the error message says:

Assessment failed: Unable to connect to the server

When I try to access my site with normal http there is no problem, however with https there’s connection timeout, according to

My 000-default-le-ssl.conf file says:

  GNU nano 2.5.3                                                File: 000-default-le-ssl.conf                                                                                                      

<IfModule mod_ssl.c>
<VirtualHost *:443>

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/
SSLCertificateKeyFile /etc/letsencrypt/live/

And my ports.conf says:

Listen 80
Listen 443
<IfModule mod_ssl.c>
        Listen 443
<IfModule ssl_module>
        Listen 443
<IfModule mod_gnutls.c>
        Listen 443

The result of netstat is like this:

netstat -tulpen | grep 443
tcp6       0      0 :::443                  :::*                    LISTEN      0          2577130     8017/apache2    
tcp6       0      0 :::443                  :::*                    LISTEN      0          2577126     8017/apache2    
tcp6       0      0 :::443                  :::*                    LISTEN      0          2575983     8017/apache2    
tcp6       0      0 :::443                  :::*                    LISTEN      0          2575979     8017/apache2    
tcp6       0      0 :::443                  :::*                    LISTEN      0          2575975     8017/apache2    

What could be the problem? I’ve restarted the service and that doesn’t change anything. Any help would be greatly appreciated

Leave a Reply

Your email address will not be published. Required fields are marked *