Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add Lighttpd config for history-mode #3177

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/guide/essentials/history-mode.md
Expand Up @@ -124,6 +124,16 @@ Add this to your `firebase.json`:
}
```

#### Lighttpd

Make sure `"mod_rewrite"` is included in `server.modules` and add this to your `lighttpd.conf`:

```
url.rewrite-if-not-file = (
"^/(.*)" => "/index.html"
)
```

## Caveat

There is a caveat to this: Your server will no longer report 404 errors as all not-found paths now serve up your `index.html` file. To get around the issue, you should implement a catch-all route within your Vue app to show a 404 page:
Expand Down