Created
July 5, 2019 20:26
-
-
Save greenkey-m/a549b7c15b4f3406e322c0ffe0bca22e to your computer and use it in GitHub Desktop.
Revisions
-
szarapka created this gist
Feb 2, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ server { listen 80 default_server; listen [::]:80 default_server; root /your/root/path; index index.html; server_name you.server.com; location / { try_files $uri $uri/ @rewrites; } location @rewrites { rewrite ^(.+)$ /index.html last; } location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { # Some basic cache-control for static files to be sent to the browser expires max; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } }