Skip to content

Commit 1c1327d

Browse files
docs: Update Caddy example (vuejs#3215)
Caddy v2 was released recently. This updates the https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations page with an example that will work for Caddy v2, and adds the `v1` suffix for the old example.
1 parent 33965c3 commit 1c1327d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/guide/essentials/history-mode.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,13 @@ For Node.js/Express, consider using [connect-history-api-fallback middleware](ht
9797
</configuration>
9898
```
9999

100-
#### Caddy
100+
#### Caddy v2
101+
102+
```
103+
try_files {path} /
104+
```
105+
106+
#### Caddy v1
101107

102108
```
103109
rewrite {

0 commit comments

Comments
 (0)