
: 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
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.
More posts by @Connie744
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.