Skip to content

Instantly share code, notes, and snippets.

@bshlgrs
Created January 13, 2017 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bshlgrs/b24224df959b5f88654dcdce66b05b1e to your computer and use it in GitHub Desktop.
Save bshlgrs/b24224df959b5f88654dcdce66b05b1e to your computer and use it in GitHub Desktop.
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