Skip to content

Commit 13ba626

Browse files
committed
fix
1 parent 6b602e6 commit 13ba626

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

caddy/frankenphp/Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# }
2020
#}
2121

22-
root * public/
22+
root public/
2323
encode zstd br gzip
2424

2525
# Uncomment the following lines to enable Mercure and Vulcain modules

docs/fr/x-sendfile.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ depuis un répertoire nommé `private-files/`.
2424
Tout d'abord, ajoutez la configuration suivante à votre `Caddyfile` pour activer cette fonctionnalité :
2525

2626
```patch
27-
root * public/
27+
root public/
2828
# ...
2929

3030
+ # Needed for Symfony, Laravel and other projects using the Symfony HttpFoundation component
3131
+ request_header X-Sendfile-Type x-accel-redirect
32+
+ request_header X-Accel-Mapping ../private-files=/private-files
3233
+
3334
+ intercept {
3435
+ @accel header X-Accel-Redirect *
3536
+ handle_response @accel {
36-
+ root * private-files/
37+
+ root private-files/
3738
+ rewrite * {resp.header.X-Accel-Redirect}
3839
+ method * GET
3940
+

docs/x-sendfile.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ from a directory named `private-files/`.
2424
First, add the following configuration to your `Caddyfile` to enable this feature:
2525

2626
```patch
27-
root * public/
27+
root public/
2828
# ...
2929

3030
+ # Needed for Symfony, Laravel and other projects using the Symfony HttpFoundation component
3131
+ request_header X-Sendfile-Type x-accel-redirect
32+
+ request_header X-Accel-Mapping ../private-files=/private-files
3233
+
3334
+ intercept {
3435
+ @accel header X-Accel-Redirect *
3536
+ handle_response @accel {
36-
+ root * private-files/
37+
+ root private-files/
3738
+ rewrite * {resp.header.X-Accel-Redirect}
3839
+ method * GET
3940
+

0 commit comments

Comments
 (0)