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

WBOY
Release: 2016-06-13 10:30:02
Original
903 people have browsed it

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;            index  index.html index.htm index.php;			autoindex on;        }		location ~ \.php$ {           #root           D:\test;           fastcgi_pass   127.0.0.1:9000;           fastcgi_index  index.php;           fastcgi_param  SCRIPT_FILENAME  E:\bbc060$fastcgi_script_name;           include        fastcgi_params;        }	}
Copy after login
?
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template