Created
November 11, 2014 15:58
-
-
Save carloscheddar/d8fd09bec8e4820dc7df to your computer and use it in GitHub Desktop.
Nginx configuration for ghost blog
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
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