摘要:
location ~ .*\.(php|php5)?$ { #fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; /*fastcgi监听端口*/ fastcgi_index index.php; include fcgi.conf; /*fastcgi配置文件,修改为以下内容*/ }vim /usr/local/nginx/conf/fcgi.conffastcgi_param GATEWAY_INTERFACE CGI/1.1;fastcgi_param SERVER_SOFTWARE nginx;fastcgi 阅读全文