Created
October 18, 2013 14:41
-
-
Save manpages/7042557 to your computer and use it in GitHub Desktop.
NGINX<->Ghost
This file contains hidden or 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 80; | |
server_name new.memorici.de; | |
root /home/ghost/; | |
index index.php; | |
location / | |
{ | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
proxy_set_header Host $host; | |
proxy_pass http://192.168.1.42:2368; | |
} | |
location ~* \.(?:ico|css|js|gif|jpe?g|png|ttf|woff)$ | |
{ | |
access_log off; | |
expires 30d; | |
add_header Pragma public; | |
add_header Cache-Control "public, mustrevalidate, proxy-revalidate"; | |
proxy_pass http://192.168.1.42:2368; | |
} | |
location = /robots.txt { access_log off; log_not_found off; } | |
location = /favicon.ico { access_log off; log_not_found off; } | |
location ~ /\.ht | |
{ | |
deny all; | |
} | |
location /ghost/ | |
{ | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment