Using HTTP 1.1 with the backend server

Denis F. Latypoff denis at gostats.ru
Tue Jun 3 17:52:54 MSD 2008


Hello Björn,

Tuesday, June 3, 2008, 8:38:09 PM, you wrote:

> Hello,

> I am having problems with a setup of nginx as Reverse Proxy / Load
> Balancer / SSL Wrapper for a couple of Apache webservers.

> The originally requested hostname gets lost due to the use of HTTP 1.0
> instead of HTTP 1.1 on the conversation with the backend server. Thus,
> the server assumes "ServerName" (in the Apache config), even though one
> of the Aliases would be correct.

> I could probably avoid the problem if I added an additianal header with
> the requested hostname, but I would prefer passing the original HTTP 1.1
> request as is to the backend server. Is that somehow makeable?

proxy_set_header Host $host

it's a pretty proper way.

> Thanks
> Björn


-- 
Best regards,
 Denis                            mailto:denis at gostats.ru






More information about the nginx mailing list