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作爲查詢參數。
謝謝。