登录

phpstudy用nginx服务器配置多站点,设置伪静态之后,在域名管理器里面会出现乱码

server {
        listen       8080;
        server_name  127.0.0.1 ;
        root   "D:\code\gome\web";
        location / {
            index  index.html index.htm index.php;
            #autoindex  on;
            if (!-e $request_filename) {
                rewrite  ^/(.*)$  /index.php?r=$1  last;
                break;
            }
        }
        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;
        }
}

微信截图_20190115202209.png微信截图_20190115202947.png

# PHP
Time Time 1920 天前 1084 次浏览

全部回复(3) 我要回复

  • Time

    Time2019-01-16 19:02:21

    有人吗?好像是一个phpstudy的bug

    回复
    0
  • Time

    Time2019-01-15 20:40:18

    有人遇到过这个码

    回复
    0
  • 取消 回复 发送