diff --git a/packages/docs/guide/essentials/history-mode.md b/packages/docs/guide/essentials/history-mode.md index 8cb720e93..62684d089 100644 --- a/packages/docs/guide/essentials/history-mode.md +++ b/packages/docs/guide/essentials/history-mode.md @@ -87,9 +87,16 @@ Instead of `mod_rewrite`, you could also use [`FallbackResource`](https://httpd. ### nginx +`/etc/nginx/conf.d/default.conf` ```nginx -location / { - try_files $uri $uri/ /index.html; +server { + listen 80; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + location / { + try_files $uri $uri/ /index.html; + } } ```