찾다

 >  Q&A  >  본문

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=  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

TimeTime2219일 전1300

모든 응답(3)나는 대답할 것이다

  • Time

    Time2019-01-16 19:02:21

    누구 있나요? phpstudy 버그인 것 같아요

    회신하다
    0
  • Time

    Time2019-01-15 20:40:18

    누군가가 이 코드를 발견했습니다

    회신하다
    0
  • 취소회신하다