Why does the latest version of phpstudy write something to the vhost file as soon as I restart my computer?
Z.X
Z.X 2017-12-08 20:51:53
0
1
1044

The whole file is in a mess, what’s going on


server {

                      80;

                      server_name   www.zt. com;

root "D:\phpStudy\PHPTutorial\WWW\zt";

location / {

index index.html index.htm index.php;

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

##server {

                                                                                        #  .php;

          #autoindex on;

fastcgi_index index.php;

fastcgi_split_path_info ^((?U). \.php)(/?. )$;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

                                    PATH_INFO     $fastcgi_path_info; }

}

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;

        }

}

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.X
Z.X

reply all(1)
Day

If you restart your computer, nothing will be written to the vhost file. When you open phpstudy, the software will first read and identify the contents of the vhsot file and read it in a fixed format. If you want to customize it, please Don't use software to configure vhost content, because the software is a fool-proof one-click configuration of virtual domain names!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template