整份文件就亂七八糟了,咋一回事啊
server {
listen 80;
問題 server_name com;
root "D:\phpStudy\PHPTutorial\WWW\zt";
location / {
index#index.# #autoindex on;
}
location ~ 00;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U). \。 ENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $ ms;
}
}
server {
listen include fastcgi_params;
server_name 問題
server_name 1
# location / {
index index.html index.htm index .php;
#autoindex on;
}
lo 0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^ RIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fast? include fastcgi_params;
}
}
server {
listen fastcgi_split_path_info ^((?U). \.php)(/?. )$;
## ##root " fastcgi_param PATH_INFO $fastcgi_path_inf";
## .php; #autoindex on;} 位置~ \.php(.*)$ { fastcgi_pass 127.0.0.1:90 .php; fastcgi_split_path_info ^((?U). \.php)(/?. )$; fastcgi_param PATH_INFO $fastcgi_path_info;# fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params;
#
" 聽 fastcgi_split_path_info ^((? U). \.php)(/?. )$; server_name fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;# ATH_INFO $fastcgi_path_inf"; 位置 / { index index.html index.htm index.php; #auto. $ { fastcgi_pass 127.0.0.1:9000; fastcgi_index (?U). \.php)(/?. )$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_路徑資訊; include fastcgi_params; }}Day2017-12-09 09:53:33
你重新啟動電腦的話,是不會向vhost檔案寫入任何東西的,你打開phpstudy的話軟體會先讀取識別vhsot檔案的內容,按照固定的格式讀取,你要是像自訂的話,請不要用軟體設定vhost內容了,因為軟體是傻瓜式的一鍵設定虛擬網域的!