Mobile app version of vmapp.org
Login or Join
Connie744

: How do I rollback the HTTPS only changes that certbot made to my Apache configuration? I have a Web Server using certbot to issue certificates. When I issue certificates for a domain, cerbot

@Connie744

Posted in: #Domains #Https

I have a Web Server using certbot to issue certificates. When I issue certificates for a domain, cerbot changes the apache config files (original file + mydomain-le-ssl.conf) of my domain to use only https.

For one of my domains, I have lots of content that use non-https (YouTube videos, images, etc). So for now I want to rollback to the original config where it used non-https.

I tried to remove manually the generated apache config by certbot, but it caused the domain to show as untrusted in chrome where you have click advanced and click yes, I really want to go to this page anyways.

How do I go back to a simple non-https domain?

I've looked-up google, but I am not sure if I need to revoke the certificate, or just remove the config or else.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Connie744

1 Comments

Sorted by latest first Latest Oldest Best

 

@Connie744

It ended up it was a browser caching issue. Found out using incognito mode.

So, what I did is I commented out those config lines generated by certbot in my original Apache config file:
#RewriteEngine on #RewriteCond %{SERVER_NAME} =www.mydomain.com [OR] #RewriteCond %{SERVER_NAME} =mydomain.com
#RewriteRule ^ %{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]


And then I did,

sudo a2dissite mydomain.prod-le-ssl.conf
sudo service apache2 reload


Then, went to see if my page was ok. It was telling me that the certificate was not from the right origin. It was actually trying to pull the certificate from another of my domains for some reason.

I went to clear browsing data in chrome settings and clear only cached images and files. Then I reloaded the page and it was fine.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme