set php version as a var

This commit is contained in:
meaz 2022-02-13 11:15:00 +01:00
parent c97c7514f8
commit 7da1d739e0
Signed by: meaz
GPG Key ID: CD7A47B2F1ED43B4
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
# Pass PHP Scripts To FastCGI Server
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; # Depends On The PHP Version
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock; # Depends On The PHP Version
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;