Skip to content

Instantly share code, notes, and snippets.

@rachidify
Last active October 10, 2017 21:33
Show Gist options
  • Save rachidify/b5bc98ef5121492fe2ef8d69efb0c036 to your computer and use it in GitHub Desktop.
Save rachidify/b5bc98ef5121492fe2ef8d69efb0c036 to your computer and use it in GitHub Desktop.
HTML5 push state + nginx
server {
listen 80;
set $host_path "www/***";
root $host_path;
index index.html;
location ~ ^/.+/$ {
rewrite .* /index.html last;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment