Nginx大神,conf檔案已配置,埠監聽已打開,但是還是無法決議php,變成直接下載,請教該咋辦。。折騰了兩天了。
location ~ \.php$ {
root /var/www/web;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param HTTPS on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
[root@localhost ~]# netstat -antp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1674/master
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 19453/nginx: master
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 1100/php-fpm: maste
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 19453/nginx: master
uj5u.com熱心網友回復:
監聽也不是一定可用的,php運行正常?uj5u.com熱心網友回復:
已解決…大晚上的眼花了…把location放server外頭了
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/27899.html
標籤:系統維護與使用區
