nginx rewirte

server {
listen 8888;
server_name jobPhp;
root F:ckPorjectquanReleasequanJob;

try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}


location ~ .php$ {
index index.html index.htm index.php;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME F:ckPorjectquanReleasequanJob$fastcgi_script_name;
include fastcgi_params;
}


}

原文地址:https://www.cnblogs.com/ck0074451665/p/4932977.html