docs: config for multiple workers (#240)

This commit is contained in:
DubbleClick
2023-10-05 11:45:38 +02:00
committed by GitHub
parent b04326ee83
commit b4780b6495

View File

@@ -68,6 +68,27 @@ Alternatively, the short form of the `worker` directive can also be used:
# ...
```
You can also define multiple workers if you serve multiple apps on the same server:
```caddyfile
{
frankenphp {
worker /path/to/app/public/index.php <num>
worker /path/to/other/public/index.php <num>
}
}
app.example.com {
root /path/to/app/public/
}
other.example.com {
root /path/to/other/public/
}
...
Using the `php_server` directive is generaly what you need,
but if you need full control, you can use the lower level `php` directive: