4 messages in ru.sysoev.nginxProxying header question
FromSent OnAttachments
Wayne E. SeguinMar 23, 2007 4:39 pm 
Igor SysoevMar 31, 2007 1:26 pm 
Wayne E. SeguinMar 31, 2007 7:43 pm 
Igor SysoevApr 1, 2007 12:19 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Proxying header questionActions...
From:Wayne E. Seguin (wayn@public.gmane.org)
Date:Mar 23, 2007 4:39:40 pm
List:ru.sysoev.nginx

Igor,

I'm trying to setup dynamic handling based on the subdomain asked for in an application that is proxied to.

Basically I'm using:

upstream http://domain.tld { ... }

server { location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect false; proxy_max_temp_file_size 0; ... if (!-f $request_filename) { proxy_pass http://domain.tld; break; } } }

What I'm finding is that the requested url "subdomain.domain.tld" doesn't pass through, instead I only get "domain.tld".

Is there a way to tell Nginx to pass this through? I've scanned the wiki but have not found this yet in there.

Thanks, ~Wayne