Skip to content

Commit 58a728b

Browse files
henderkesdunglas
andauthored
docs: add configuration note about the ominous php directive (#1495)
* add note about the `php` directive in the configuration page * Update config.md * Update config.md --------- Co-authored-by: Kévin Dunglas <kevin@dunglas.fr>
1 parent 66aa975 commit 58a728b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ other.example.com {
103103
```
104104

105105
Using the `php_server` directive is generally what you need,
106-
but if you need full control, you can use the lower level `php` directive:
106+
but if you need full control, you can use the lower-level `php` directive.
107+
The `php` directive passes all input to PHP, instead of first checking whether
108+
it's a PHP file or not. Read more about it in the [performance page](performance.md).
107109

108110
Using the `php_server` directive is equivalent to this configuration:
109111

docs/fr/config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ other.example.com {
104104

105105
L'utilisation de la directive `php_server` est généralement suffisante,
106106
mais si vous avez besoin d'un contrôle total, vous pouvez utiliser la directive `php`, qui permet un plus grand niveau de finesse dans la configuration.
107+
La directive `php` transmet toutes les entrées à PHP, au lieu de vérifier d'abord si
108+
c'est un fichier PHP ou pas. En savoir plus à ce sujet dans la [page performances](performance.md).
107109

108110
Utiliser la directive `php_server` est équivalent à cette configuration :
109111

0 commit comments

Comments
 (0)