Hi all, I've just installed Flarum and trying to switch it to HTTPS with Apache2/Ubuntu 22.04
Browsers are giving a partial page load with
"Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error."
Looks like it's a mixed HTTP/HTTPS content issue
I'm really rusty on Linux stuff so I'd appreciate pointers.
<VirtualHost :80>
ServerAdmin webmaster@localhost
ServerName 10.8.49.234
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.) https://%{SERVER_NAME}/$1 [R=301,L]
Redirect / https://10.8.49.234/
DocumentRoot /var/www/html/flarum/public/
<Directory "/var/www/html/flarum/public/">
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName 10.8.49.234
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/flarum/public/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
<Directory "/var/www/html/flarum/public/">
AllowOverride All
</Directory>
</VirtualHost>
Flarum information
Flarum 1.5.0