Skip to content

Commit 1ba19ae

Browse files
authored
docs: bring back note for php_server -> root (#1726)
1 parent b80cb6c commit 1ba19ae

5 files changed

Lines changed: 15 additions & 5 deletions

File tree

docs/cn/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,15 @@ localhost {
8686

8787
```caddyfile
8888
app.example.com {
89+
root /path/to/app/public
8990
php_server {
90-
root /path/to/app/public
91+
root /path/to/app/public # 允许更好的缓存
9192
worker index.php <num>
9293
}
9394
}
9495
9596
other.example.com {
97+
root /path/to/other/public
9698
php_server {
9799
root /path/to/other/public
98100
worker index.php <num>

docs/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ You can also define multiple workers if you serve multiple apps on the same serv
9595

9696
```caddyfile
9797
app.example.com {
98+
root /path/to/app/public
9899
php_server {
99-
root /path/to/app/public
100+
root /path/to/app/public # allows for better caching
100101
worker index.php <num>
101102
}
102103
}
103104
104105
other.example.com {
106+
root /path/to/other/public
105107
php_server {
106108
root /path/to/other/public
107109
worker index.php <num>

docs/fr/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ Vous pouvez aussi définir plusieurs workers si vous servez plusieurs applicatio
9494

9595
```caddyfile
9696
app.example.com {
97+
root /path/to/app/public
9798
php_server {
98-
root /path/to/app/public
99+
root /path/to/app/public # permet une meilleure mise en cache
99100
worker index.php <num>
100101
}
101102
}
102103
103104
other.example.com {
105+
root /path/to/other/public
104106
php_server {
105107
root /path/to/other/public
106108
worker index.php <num>

docs/ru/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ localhost {
8989

9090
```caddyfile
9191
app.example.com {
92+
root /path/to/app/public
9293
php_server {
93-
root /path/to/app/public
94+
root /path/to/app/public # позволяет лучше кэшировать
9495
worker index.php <num>
9596
}
9697
}
9798
9899
other.example.com {
100+
root /path/to/other/public
99101
php_server {
100102
root /path/to/other/public
101103
worker index.php <num>

docs/tr/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,15 @@ Aynı sunucuda birden fazla uygulamaya hizmet veriyorsanız birden fazla işçi
8888

8989
```caddyfile
9090
app.example.com {
91+
root /path/to/app/public
9192
php_server {
92-
root /path/to/app/public
93+
root /path/to/app/public # daha iyi önbelleğe almayı sağlar
9394
worker index.php <num>
9495
}
9596
}
9697
9798
other.example.com {
99+
root /path/to/other/public
98100
php_server {
99101
root /path/to/other/public
100102
worker index.php <num>

0 commit comments

Comments
 (0)