Heim > Fragen und Antworten > Hauptteil
Die ganze Datei ist durcheinander, was ist los? .*) $ {
fastcgi_pass 127.0.0.0.1:9000 ;
root " fastcgi_param PATH_INFO $fastcgi_path_inf";
location / {
index index.html index.htm index.php;
#auto index on;
}
location ~ .php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
fastcgi_para m SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $ fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
server {
listen fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
server_name fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
root fastcgi_param PATH_INFO $fastcgi_path_inf";
location / {
index index.html index.htm index.php;
#autoindex on;
}
location ~ .php(.*)$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+.php)(/? .+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
}
}
Day2017-12-09 09:53:33
你重启电脑的话,是不会向vhost文件写入任何东西的,你打开phpstudy的话软件会先读取识别vhsot文件的内容,按照固定的格式读取,你要是像自定义的话,请不要用用软件来配置vhost内容了,因为软件是傻瓜式的一键配置虚拟域名的!