Heim  >  Fragen und Antworten  >  Hauptteil

Warum schreibt die neueste Version von phpstudy etwas in die vhost-Datei, sobald ich meinen Computer neu starte?

Die ganze Datei ist durcheinander, was ist los? .*) $ {

fastcgi_pass 127.0.0.0.1:9000 ;

_Split_path_info ^ ((?U).+.php)(/?.+)$; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;

include fastcgi_params;

}}} VServer {

Listen Include Fastcgi_params;

Servername;

root „“ „“ „; ; fastcgi_index index.php; fastcgi_sp lit_path_info ^((?U).+.php)(/?.+)$ ;           fastcgi_param   SCRIPT_FILENAME   $document_root$fastcgi_script_name;             fastcgi_param      fastcgi_path_info; LATED $document_root$fastcgi_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;

          #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;

        }

}


Z.XZ.X2529 Tage vor1021

Antworte allen(1)Ich werde antworten

  • Day

    Day2017-12-09 09:53:33

    你重启电脑的话,是不会向vhost文件写入任何东西的,你打开phpstudy的话软件会先读取识别vhsot文件的内容,按照固定的格式读取,你要是像自定义的话,请不要用用软件来配置vhost内容了,因为软件是傻瓜式的一键配置虚拟域名的!

    Antwort
    0
  • StornierenAntwort