Skip to content

Commit 20ad33d

Browse files
committed
Add example config for nginx with browserHistory
1 parent b06d1db commit 20ad33d

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
@@ -81,6 +81,17 @@ app.listen(port)
8181
console.log("server started on port " + port)
8282
```
8383

84+
A quick example with nginx:
85+
86+
```
87+
server {
88+
...
89+
location / {
90+
try_files $uri /index.html
91+
}
92+
}
93+
```
94+
8495
#### IE8, IE9 Support
8596
We feature detect to see if we can use the browser's native `History`
8697
API, if not, any call to transition around the app will result in _a

0 commit comments

Comments
 (0)