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:
parent
afa0a94343
commit
bb6e9d398d
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user