Configuring Ghost Proxy with Apache

Here is my Apache config for my Ghost installation. As you can see I permanently redirect http to https, and then proxy to the Ghost installation.

<Directory /opt/ghost>
    Options +All +Multiviews
    AllowOverride All
    <IfModule mod_access.c>
    Order allow,deny
    Allow from all
    </IfModule>
</Directory>

<VirtualHost 192.168.1.1:80>
    ServerName classesarecode.net
    ServerAlias www.classesarecode.net
    ServerSignature Off
    Options -Indexes -FollowSymLinks MultiViews
    ServerAdmin webmaster@classesarecode.net
    DocumentRoot /opt/ghost
    Redirect permanent / https://classesarecode.net/
</VirtualHost>

<VirtualHost 192.168.1.1:443>
    ServerName classesarecode.net
    ServerAlias www.classesarecode.net
    ServerSignature Off
    Options -Indexes -FollowSymLinks MultiViews
    ServerAdmin webmaster@classesarecode.net
    DocumentRoot /opt/ghost

    SSLEngine on
    SSLCipherSuite SSLv3:TLSv1:+HIGH:!SSLv2:!MD5:!MEDIUM:!LOW:!EXP:!ADH:!eNULL:!aNULL
    SSLCertificateFile /etc/ssl/certs/moyville.net.cert
    SSLCertificateKeyFile /etc/ssl/private/moyville.net.key

    ProxyRequests off
    ProxyVia On
    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:2368/
    ProxyPassReverse / http://127.0.0.1:2368/
    RequestHeader set X-Forwarded-Proto https early
</VirtualHost>

<VirtualHost 10.0.0.8:80>
    ServerName classesarecode.net
    ServerAlias www.classesarecode.net
    ServerSignature Off
    Options -Indexes -FollowSymLinks MultiViews
    ServerAdmin webmaster@classesarecode.net
    DocumentRoot /opt/ghost
    Redirect permanent / https://classesarecode.net/
</VirtualHost>

<VirtualHost 10.0.0.8:443>
    ServerName classesarecode.net
    ServerAlias www.classesarecode.net
    ServerSignature Off
    Options -Indexes -FollowSymLinks MultiViews
    ServerAdmin webmaster@classesarecode.net
    DocumentRoot /opt/ghost

    SSLEngine on
    SSLCipherSuite SSLv3:TLSv1:+HIGH:!SSLv2:!MD5:!MEDIUM:!LOW:!EXP:!ADH:!eNULL:!aNULL
    SSLCertificateFile /etc/ssl/certs/moyville.net.cert
    SSLCertificateKeyFile /etc/ssl/private/moyville.net.key

    ProxyRequests off
    ProxyVia On
    ProxyPreserveHost On
    ProxyPass / http://127.0.0.1:2368/
    ProxyPassReverse / http://127.0.0.1:2368/
    RequestHeader set X-Forwarded-Proto https early
</VirtualHost>