Last active
August 29, 2015 14:01
-
-
Save asobrien/9ffcf41d31f9ac12a28d to your computer and use it in GitHub Desktop.
Nginx server block template for Ghost Node.js reverse proxy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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