2017-04-19 77 views

回答

0

你可能需要/x後捕獲的URL部分,並在新的位置結束改寫:

location /x { 
     rewrite ^/x(.*)$ http://www.newdomain.com$1 redirect; 
}