Skip to content

Instantly share code, notes, and snippets.

@hansamlin
Created November 30, 2020 07:52
Show Gist options
  • Select an option

  • Save hansamlin/46bc501d1006913893a1b9adb26e3871 to your computer and use it in GitHub Desktop.

Select an option

Save hansamlin/46bc501d1006913893a1b9adb26e3871 to your computer and use it in GitHub Desktop.
server {
listen 3000;
charset utf-8;
error_page 404 500 /404.html;
location / {
rewrite ^(.+)/$ $1 permanent;
index index.html;
root /my/project/path;
try_files $uri $uri/index.html $uri.html 404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment