docs: bring back note for php_server -> root (#1726)

This commit is contained in:
Marc
2025-07-06 02:44:02 +07:00
committed by GitHub
parent b80cb6cdea
commit 1ba19ae09e
5 changed files with 15 additions and 5 deletions

View File

@@ -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 <num>
}
}
other.example.com {
root /path/to/other/public
php_server {
root /path/to/other/public
worker index.php <num>

View File

@@ -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 <num>
}
}
other.example.com {
root /path/to/other/public
php_server {
root /path/to/other/public
worker index.php <num>

View File

@@ -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 <num>
}
}
other.example.com {
root /path/to/other/public
php_server {
root /path/to/other/public
worker index.php <num>

View File

@@ -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 <num>
}
}
other.example.com {
root /path/to/other/public
php_server {
root /path/to/other/public
worker index.php <num>

View File

@@ -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 <num>
}
}
other.example.com {
root /path/to/other/public
php_server {
root /path/to/other/public
worker index.php <num>