Website not showing after HTTPS is enabled

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: www.benjaminthompson.org

I ran this command: sudo certbot --apache -d benjaminthompson.org

It produced this output: Index of /

My web server is (include version): Apache 2.4.1.8

The operating system my web server runs on is (include version):Ubuntu 16.04

My hosting provider, if applicable, is: digitalocean

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): SSH

This site could not prove it’s www.benjaminthompson.org beacuse the certificate is given to benjaminthompson.org

how do I change certificate domain to www.benjaminthompson.org?

Please help, I’m desperate.

You must specify all valid domain names on certificate issuance.

You can redo your certificate:

sudo certbot --apache --cert-name benjaminthompson.org -d benjaminthompson.org -d www.benjaminthompson.org

1 Like

Thank you so much! :)))))

1 Like

So I updated the certificate and now I’m running into another issue.

Please have a look: www.benjaminthompson.org
tp:/
Certicat: NET::ERR_CERT_AUTHORITY_INVALID

I don’t see any error here. Could you please close all instances of your browser and then retry?

Sorry about the confusion.

When I enter benjaminthompson.org I get the error: Certicat: NET::ERR_CERT_AUTHORITY_INVALID

When I enter www.benjaminthompson.org it enters HTTP which should be HTTPS

Thanks

Earlier I used your link: sudo certbot --apache --cert-name benjaminthompson.org -d benjaminthompson.org -d www.benjaminthompson.org

I have now changed it:

sudo certbot --apache --cert-name benjaminthompson.org -d www.benjaminthompson.org

I Hope it will resolv the issue.

Unfortunately it didn’t work.

All help is really appreciated.

/etc/apache2/sites-available/benjaminthompson.org.conf

<VirtualHost *:80>
ServerName benjaminthompson.org
DocumentRoot /var/www/
RewriteEngine on
RewriteCond %{SERVER_NAME} =benjaminthompson.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

<VirtualHost *:80>
ServerName www.benjaminthompson.org
Redirect permanent / http://benjaminthompson.org/
RewriteEngine on
RewriteCond %{SERVER_NAME} =benjaminthompson.org [OR]
RewriteCond %{SERVER_NAME} =www.benjaminthompson.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

what nameservers should be listed in /etc/resolv.conf ?

How do I troubleshoot my problem?

Thanks

clear your browser and try with another one

your certificate is working

Hi alhaw021,

I know, thanks.

My problem is my page don’t display the content from my page.

thats a web development problem not a HTTPS / SSL problem :wink:

stackexchange is the place to ask those questions :wink:

I have the same problem that My problem is my website don’t display the content from my page. My web : https://standaviet.vn

Make sure your document root is set to /var/www/html in your virtual host file

If you have wordpress or else in the correct folder

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.