huashan8 发表于 2016-12-26 10:06:25

window下nginx虚拟主机不能解析php

  本地window7配置nginx 1.011虚拟主机不能解析php问题,导致:no input file specified
  nginx.conf中http{}增加:

server {
listen          80;
server_name   bbc060;
location / {
root   E:\bbc060;
indexindex.html index.htm index.php;
autoindex on;
}
location ~ \.php$ {
#root         D:\test;
fastcgi_pass   127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_paramSCRIPT_FILENAMEE:\bbc060$fastcgi_script_name;
include      fastcgi_params;
}
}
 
页: [1]
查看完整版本: window下nginx虚拟主机不能解析php