From 1ba19ae09eca728104b4c9efaf371dfdc2f9712f Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 6 Jul 2025 02:44:02 +0700 Subject: [PATCH] docs: bring back note for php_server -> root (#1726) --- docs/cn/config.md | 4 +++- docs/config.md | 4 +++- docs/fr/config.md | 4 +++- docs/ru/config.md | 4 +++- docs/tr/config.md | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/docs/cn/config.md b/docs/cn/config.md index fddfe731..8c24680f 100644 --- a/docs/cn/config.md +++ b/docs/cn/config.md @@ -86,13 +86,15 @@ localhost { ```caddyfile app.example.com { + root /path/to/app/public php_server { - root /path/to/app/public + root /path/to/app/public # 允许更好的缓存 worker index.php } } other.example.com { + root /path/to/other/public php_server { root /path/to/other/public worker index.php diff --git a/docs/config.md b/docs/config.md index 58b19e8e..70525c9b 100644 --- a/docs/config.md +++ b/docs/config.md @@ -95,13 +95,15 @@ You can also define multiple workers if you serve multiple apps on the same serv ```caddyfile app.example.com { + root /path/to/app/public php_server { - root /path/to/app/public + root /path/to/app/public # allows for better caching worker index.php } } other.example.com { + root /path/to/other/public php_server { root /path/to/other/public worker index.php diff --git a/docs/fr/config.md b/docs/fr/config.md index 14c5b1aa..284f1106 100644 --- a/docs/fr/config.md +++ b/docs/fr/config.md @@ -94,13 +94,15 @@ Vous pouvez aussi définir plusieurs workers si vous servez plusieurs applicatio ```caddyfile app.example.com { + root /path/to/app/public php_server { - root /path/to/app/public + root /path/to/app/public # permet une meilleure mise en cache worker index.php } } other.example.com { + root /path/to/other/public php_server { root /path/to/other/public worker index.php diff --git a/docs/ru/config.md b/docs/ru/config.md index 2ca73359..7a2c25ba 100644 --- a/docs/ru/config.md +++ b/docs/ru/config.md @@ -89,13 +89,15 @@ localhost { ```caddyfile app.example.com { + root /path/to/app/public php_server { - root /path/to/app/public + root /path/to/app/public # позволяет лучше кэшировать worker index.php } } other.example.com { + root /path/to/other/public php_server { root /path/to/other/public worker index.php diff --git a/docs/tr/config.md b/docs/tr/config.md index cf19a2ca..5d17f6e1 100644 --- a/docs/tr/config.md +++ b/docs/tr/config.md @@ -88,13 +88,15 @@ Aynı sunucuda birden fazla uygulamaya hizmet veriyorsanız birden fazla işçi ```caddyfile app.example.com { + root /path/to/app/public php_server { - root /path/to/app/public + root /path/to/app/public # daha iyi önbelleğe almayı sağlar worker index.php } } other.example.com { + root /path/to/other/public php_server { root /path/to/other/public worker index.php