Skip to content

Instantly share code, notes, and snippets.

@carloscheddar
Created November 11, 2014 15:58
Show Gist options
  • Save carloscheddar/d8fd09bec8e4820dc7df to your computer and use it in GitHub Desktop.
Save carloscheddar/d8fd09bec8e4820dc7df to your computer and use it in GitHub Desktop.
Nginx configuration for ghost blog
server {
listen 0.0.0.0:80;
server_name http://your-blog.com; #replace this line with your domain
access_log /var/log/nginx/your-blog.com.log; #replace this with any log name
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header HOST $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://ghost:2368;
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment