1 Apr 2007 04:43
Re: Proxying header question
On Mar 31, 2007, at 16:26 , Igor Sysoev wrote: > On Fri, Mar 23, 2007 at 07:40:03PM -0400, Wayne E. Seguin wrote: > >> 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 { > > -upstream http://domain.tld { > +upstream 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_set_header Host $http_host; > + proxy_set_header Host $host; > >> proxy_redirect false; > > - proxy_redirect false;(Continue reading)
RSS Feed