mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-12-26 14:05:24 +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:
parent
afa0a94343
commit
bb6e9d398d
@ -19,5 +19,9 @@ http {
|
||||
root /app/www;
|
||||
<% end %>
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user