Setting upi a proxy using nginx

view full story

http://serverfault.com – I'm trying to setup of proxy using nginx, but it redirects rather than proxy it (at least that's what it looks like). My virtual host config: server { listen 80; server_name proxy.example.com; location / { proxy_pass http://thepiratebay.se/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 10m; client_body_buffer_size 128k; proxy_con (HowTos)