Preserving all original request headers through a proxy_pass ?

elgreco nginx-forum at nginx.us
Fri Dec 31 00:56:00 MSK 2010


I dont know if i can ask in the same topic my question...

i have a upstream of two servers which responds on host headers only
(apache virtualhost's)
when i try to open the www.server.local (which is nginx  frontend) i get
only default web pages from backends and not the web1 or web2
what should i do to fix the problem ?


[code]
upstream backend {
                server web1.local.com:80;
                server web2.local.com:80;
        }
        server {

      listen 80;
         server_name www.domain.local;
            location / {
              proxy_pass  http://backend;
              proxy_set_header        Host            $host;
            }
    }
[/code]

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,156228,162364#msg-162364




More information about the nginx mailing list