我正在尝试Proxy Pass
/do/uploads.php?id=xxx
在/do/upload?id=xxx
Nginx
这是我的尝试
location /do {
rewrite /do/uploads\.php /do/uploads$1 break;
proxy_pass http://domain/do;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
我找到了解决方案。这里是: