fix: use nginx for php fpm

This commit is contained in:
2023-01-16 23:49:09 +01:00
parent 269f2787b6
commit 13174053f1
2 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
server {
listen 8080;
index index.php index.html;
root /var/www/html/public;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}