Created
November 1, 2019 16:45
-
-
Save acampagnaro/bc1da3dae815702c2d6c59fa7828ea77 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"; } }