Skip to content

Commit dcac75c

Browse files
committed
Add configuration settings for Caddy
1 parent 27d6e59 commit dcac75c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/en/essentials/history-mode.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ location / {
4545
For Node.js/Express, consider using [connect-history-api-fallback middleware](https://github.com/bripkens/connect-history-api-fallback).
4646

4747
#### Internet Information Services (IIS)
48-
```
48+
```xml
4949
<?xml version="1.0" encoding="UTF-8"?>
5050
<configuration>
5151
<system.webServer>
@@ -72,6 +72,14 @@ For Node.js/Express, consider using [connect-history-api-fallback middleware](ht
7272
</configuration>
7373
```
7474

75+
#### Caddy
76+
```
77+
rewrite {
78+
regexp .*
79+
to {path} /
80+
}
81+
```
82+
7583
## Caveat
7684

7785
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:

0 commit comments

Comments
 (0)