1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-12-27 06:15:25 +00:00

Forwards requests to index.html after no file or folder was found

Useful for SPA's like AngularJS where the SPA's router takes care of the routing.
This commit is contained in:
Matthias Langhard 2016-06-28 13:45:23 +02:00 committed by GitHub
parent afa0a94343
commit bb6e9d398d

View File

@ -19,5 +19,9 @@ http {
root /app/www; root /app/www;
<% end %> <% end %>
index index.html; index index.html;
location / {
try_files $uri $uri/ /index.html;
}
} }
} }