[SOLVED] Cloudflare Origin CA not working when [Full Strict]

I had Certbot taking care for my certificates for a long time. I decided to make a test and see if Cloudflare does better. GTMetrix reasons. So I generated an Origin Certificate .pem + .key for 3 of my domains, deleted Certbot certificates with:
certbot delete --cert-name domainname.com
removed all config files of certbot in /etc/apache2/sites-enabled (I don’t use symlinks with sites-available. I write straight to this directory. No need of a2en afterwords.)
I added:

<VirtualHost *:443>

    ServerAdmin [email protected]
    ServerName domainname.com
    ServerAlias www.domainname.com
    DocumentRoot /var/www/public_html/domainname.com/public
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    SSLEngine on
    SSLCertificateFile /etc/cloudflare/domainname.com.pem
    SSLCertificateKeyFile /etc/cloudflare/domainname.com.key


After <VirtualHost *:80>...</VirtualHost>

Purged cerbot with it’s packages to make sure there are no left overs.
I restarted Apache.

Now with the new generated certificate and key in /etc/cloudflare/ I was hoping everything should go smooth but instead the main/index page of my websites is loading perfectly (I started a new session in brave ctrl+shift+n > ctl+f5) and every other page is giving me error:

Not Found

The requested URL was not found on this server.
Apache/2.4.25 (Debian) Server at domainname.com Port 443

If I change it to Flexible. Everything goes smooth. Suggestions?

Funny enough it was a cache issue…

1 Like