使用nginx将整个url重写为查询字符串?

时间:2012-02-23 06:12:10

标签: nginx

1 个答案:

答案 0 :(得分:0)

rewrite ^(.*)$ http://domain2?path=$scheme://$host$1 last;

OR

rewrite ^(.*)$ http://domain2?path=$scheme://$host$reques_uri last;

更多关于nginx variables