Last active
October 10, 2019 15:04
-
-
Save wesort/a10c1d6edf62bc693fb7015cdd0dde2a to your computer and use it in GitHub Desktop.
The part of nginx.conf on forge.laravel.com for static sites.
This file contains 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
location / { | |
if ($request_uri ~ ^/(.*)\.html$) { | |
return 302 /$1?$args; | |
} | |
try_files $uri $uri.html $uri/ =404; | |
} | |
error_page 404 /404.html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace the snippet below with the gist above
Now delete the following line (around line 40)