NGINX环境
贴出conf配置
server {
listen 11.45.223.256:80;
root /www/web/baidu/public_html;
server_name www.baidu.com baidu.com;
index index.html index.php index.htm;
location ~ \.php(.*)$ {
fastcgi_pass unix:/tmp/php-54-cgi.sock;
fastcgi_index index.php;
fastcgi_param sc
fastcgi_param PATH_INFO $2;
include fcgi.conf;
}
location ~ /\.ht {
deny all;
}
}
最佳答案