Welcome! Log In Create A New Profile

Advanced

Re: Preserving all original request headers through a proxy_pass ?

Maxim Dounin
December 30, 2010 06:32PM
Hello!

On Thu, Dec 30, 2010 at 04:56:00PM -0500, elgreco wrote:

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

General rule is: don't hijack threads.

> 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 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;
> }
> }

Most likely you don't have "www.domain.local" configured as
virtualhost on your backends, and that's why it doesn't work.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Preserving all original request headers through a proxy_pass ?

Rasmus Lerdorf December 06, 2010 06:32PM

Re: Preserving all original request headers through a proxy_pass ?

Eugaia December 06, 2010 06:48PM

Re: Preserving all original request headers through a proxy_pass ?

Rasmus Lerdorf December 06, 2010 07:20PM

Re: Preserving all original request headers through a proxy_pass ?

Maxim Dounin December 06, 2010 08:32PM

Re: Preserving all original request headers through a proxy_pass ?

elgreco December 30, 2010 04:56PM

Re: Preserving all original request headers through a proxy_pass ?

Maxim Dounin December 30, 2010 06:32PM

Re: Preserving all original request headers through a proxy_pass ?

elgreco December 31, 2010 03:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready