Created
January 13, 2017 01:42
-
-
Save bshlgrs/b24224df959b5f88654dcdce66b05b1e to your computer and use it in GitHub Desktop.
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; ## listen for ipv4; this line is default and implied | |
server_name shlegeris.com www.shlegeris.com; | |
location /dice/ { | |
proxy_pass http://127.0.0.1:4567/; | |
} | |
location /music-game/ { | |
proxy_pass http://bshlgrs.github.io/music-game/; | |
} | |
location /glossary/ { | |
proxy_pass http://127.0.0.1:4646/; | |
} | |
location /static/ { | |
root /www/static; | |
} | |
location / { | |
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent; | |
root /root/_site; | |
try_files $uri/index.html $uri.html $uri/ $uri =404; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment