You could just do proxy_pass http://192.168.10.34$request_uri See this for more https://nginx.org/en/docs/http/ngx_http_core_module.html#var_request_uri Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278344,278347#msg-278347