I have a simple nginx forward proxy, configured as: server { listen 8000; resolver 8.8.8.8; location / { proxy_pass http://$host; proxy_set_header Host $host; } } The client behind its isp firewall sends the request (per nginx log): GET http://www.clientisp.com/path/rewrite.do?url=http%3A%2F%2Fwww.example.com HTTP/1.1 How do I transform the requested url to http://www.example.comby shadowgun1102 - Nginx Mailing List - English