I have the following Apache configuration set up for my Wordpress installation and it does not serve the website over HTTPS at all, I only get the ERR_SSL_PROTOCOL_ERROR
error.
I did some research and came across this solution on Reddit, which did not work and made my website unusable. The site does work over HTTPS if I turn on Cloudflare proxying but some things don't work such as saving posts. Any help is appreciated, thank you!
<VirtualHost CENSOREDIP:80> ProxyPreserveHost On ProxyRequests Off ServerName crossfade.zone ServerAdmin CENSOREDEMAIL DocumentRoot /var/www/crossfade LogLevel debug</VirtualHost> <VirtualHost CENSOREDIP:443> ProxyPreserveHost on ProxyRequests Off ServerName crossfade.zone ServerAdmin CENSOREDEMAIL DocumentRoot /var/www/crossfade LogLevel debug SSLEngine on SSLCertificateFile /etc/letsencrypt/live/crossfade.zone/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/crossfade.zone/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf RequestHeader set X-Forwarded-Port "443" RequestHeader set X-Forwarded-Proto "https"<Proxy *> Order deny,allow Allow from all</Proxy></VirtualHost><Directory /var/www/crossfade> AllowOverride All Options FollowSymLinks</Directory><Directory /var/www/crossfade> AllowOverride All Options -Indexes +MultiViews +FollowSymLinks +ExecCGI Require all granted</Directory>