proxy_set_header host
Francisco Treacy
lists at ruby-forum.com
Tue Dec 29 15:27:01 MSK 2009
Igor Sysoev wrote:
> There is no "ServerName" header. Probably, you need just
>
> location / {
> proxy_pass http://localhost:9090/app/;
> }
>
This is the first thing I tried. Now I updated nginx to 0.7.x and
$server_name trick doesn't work anymore. It is still unclear to me how
to obtain the server name as a header.
Btw, it doesn't have to be an "official" HTTP header... anything will do
as long as I can obtain the "subdomain.domain.com" in my code.
Could you please show me how?
Thanks!
Francisco
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list