This config can work. My mistake is this
proxy_set_header Host $http_host;
Since I have proxy to the originalUrl once, so the this sentence should be
proxy_set_header Host $proxy_host;