发布时间: 2020-12-18 文章作者: myluzh 分类名称: Linux 朗读文章
server { listen 80; server_name localhost; root /var/www/html; location / { index index.php index.html; #autoindex off; } #开启php location ~ \.php(.*)$ { #"netstat -npl | grep php"可以找到php run路径 fastcgi_pass unix:///run/php/php7.4-fpm.sock; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } }
发表评论