New Post has been published on WebSetNet
New Post has been published on http://websetnet.com/how-to-install-ghost-with-nginx-proxy-cache/
How to install ghost with nginx proxy-cache
Prerequisite: You need to have node.js & npm installed.
mkdir /var/www/example.com/htdocs/ cd /var/www/example.com/htdocs/ git clone https://github.com/TryGhost/Ghost . npm install -g grunt-cli npm install grunt init grunt prod npm install -g forever forever start index.js
Above will start ghost on http://localhost:2368/.
Goto http://localhost:2368/ghost/setup/ to create admin user and complete one-time setup.
Create a config file /etc/nginx/sites-available/example.com and paste following:
(following config is directly copied from https://gist.github.com/pnommensen/707b5519766ba45366dd)
upstream ghost_upstream server 127.0.0.1:2368; keepalive 64; proxy_cache_path /var/run/cache levels=1:2 keys_zone=STATIC:75m inactive=24h max_size=512m; server signout) proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_pass http://ghost_upstream; add_header Cache-Control "no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0";
If you are using EasyEngine, you may watch this issue.