1
下面我有nginx的配置如何发送REQUEST_URI作为查询参数proxy_pass在nginx的
server {
listen 80;
client_max_body_size 10M;
keepalive_timeout 15;
server_name mysite.com;
location/{
proxy_pass http://anothersite.com
}
}
以上工作,但我需要的东西象下面这样:
位置/ { proxy_pass http://anothersite.com?q=request_uri这样我就可以将request_uri作为查询参数传递。
您能否提供正确的语法来传递request_uri作为查询参数。
谢谢。