Skip to content

Instantly share code, notes, and snippets.

@asobrien
Last active August 29, 2015 14:01
Show Gist options
  • Save asobrien/9ffcf41d31f9ac12a28d to your computer and use it in GitHub Desktop.
Save asobrien/9ffcf41d31f9ac12a28d to your computer and use it in GitHub Desktop.
Nginx server block template for Ghost Node.js reverse proxy.
# Ghost Blog -- Reverse Proxy Config
server {
listen 80; # port
server_name blog.domain.com; # domain name to respond to
access_log /var/log/nginx/blog-domain-com.log; # access log locations
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://127.0.0.1:2368; # Change port to match settings in config.js (default)
proxy_redirect off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment