added notes about php server version

This commit is contained in:
arc 2023-01-06 17:33:20 +00:00
parent 4a3184e298
commit 647223cd36

View File

@ -30,3 +30,16 @@ location ~ /\.ht {
deny all; deny all;
} }
``` ```
The correct version of `php-fpm` must be represented:
```
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/[version].sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
```
Where `[version]` is the correct version, EG: `php8.1-fpm`.