Changes

Jump to navigation Jump to search
So Ed would rather not serve the blog off of port 2368. Looks like there's documentation for setting Ghost up on [http://support.ghost.org/basic-nginx-config/ nginx] and [https://www.howtoinstallghost.com/how-to-host-ghost-on-an-apache-subdomain/ apache]. Since we would rather not move the mediawiki off of apache, let's just try doing Ghost and apache.
 
[https://www.allaboutghost.com/how-to-proxy-ghost-through-apache-for-security-and-multi-blog-setup/ This page] looked helpful, but I changed some stuff around.
 
First, as the comments suggest, enable the proxy and proxy_http modules in apache:
 
$ sudo a2enmod proxy
$ sudo a2enmod proxy_http
$ sudo service apache2 restart
 
Then go to the apache configuration file
 
$ cd /etc/apache2/sites-available
$ sudo vi 000-default.conf
I added this VirtualHost block:
 
<VirtualHost *:80>
# https://www.allaboutghost.com/how-to-proxy-ghost-through-apache-for-security-and-multi-blog-setup/
# ServerName your-second-url.com
#ServerAlias www.your-second-url.com
RewriteEngine On
RewriteRule ^/?blog(/.*)?$ /var/www/ghost/index.js [L]
ProxyRequests off
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
== To-do list ==
Anonymous user

Navigation menu