Skip to content

Commit a94b542

Browse files
committed
Merge pull request #2157 from serprime/master
Add example config for nginx with browserHistory
2 parents 030a92e + 20ad33d commit a94b542

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/guides/basics/Histories.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ app.listen(port)
6060
console.log("server started on port " + port)
6161
```
6262

63+
A quick example with nginx:
64+
65+
```
66+
server {
67+
...
68+
location / {
69+
try_files $uri /index.html
70+
}
71+
}
72+
```
73+
6374
#### IE8, IE9 Support
6475
We feature detect to see if we can use the browser's native `window.history` API. If not, any call to transition around the app will result in _a full page reload_, which allows you to build your app and have a better experience for newer browsers, but still support old ones.
6576

0 commit comments

Comments
 (0)