Preserving all original request headers through a proxy_pass ?

elgreco nginx-forum at
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 ?

upstream backend {
        server {

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

Posted at Nginx Forum:,156228,162364#msg-162364

More information about the nginx mailing list