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;
}
}
![1547555516993126.png 微信截图_20190115202209.png](https://img.php.cn//upload/image/843/744/886/1547555516993126.png)
![1547555522227895.png 微信截图_20190115202947.png](https://img.php.cn//upload/image/574/428/716/1547555522227895.png)