2013-04-24 114 views

回答

3
proxy_pass http://localhost:9000$request_uri 

@request_uri等于请求从客户端收到的包含参数的URI。这个帖子的$request_uri/questions/16188521/how-do-i-include-the-original-url-as-a-request-parameter-when-proxying

http://wiki.nginx.org/HttpCoreModule#.24request_uri

+1

如果我这样做,它告诉我:“你正在寻找的页面暂时不可用。 请稍后再试”下一次我尝试访问它 – preslavrachev 2013-04-24 10:01:50

+0

@ user1107412检查error.log中来看看发生了什么问题 – hailinzeng 2013-04-24 12:52:44

+0

这对我有效。谢谢! – 2015-08-14 00:03:38

相关问题