schemar / blog.schenck.online

schemar blogs
https://blog.schenck.online
0 stars 0 forks source link

posts/ghost-with-apache-and-https/ #1

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Ghost with Apache and HTTPS :: Martin Schenck — schemar blogs

When you set up a ghost blog with an Apache HTTP server as reverse proxy and enable SSL, you will get an error that the page cannot be loaded. In short, the fix is to add a header that specifies the incoming protocol at the reverse proxy to be https: RequestHeader set X-Forwarded-Proto "https" <IfModule mod_ssl.c> <VirtualHost *:443> ServerName blog.example.com ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLCertificateFile /etc/letsencrypt/live/blog.example.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/blog.example.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.

https://blog.schenck.online/posts/ghost-with-apache-and-https/

schemar commented 2 years ago

Test comment :see_no_evil: