Re: HA Proxy as Amazon S3 Content Switch

From: Willy Tarreau <w#1wt.eu>
Date: Tue, 30 Sep 2008 00:50:44 +0200


On Mon, Sep 29, 2008 at 10:52:53AM -0700, John Singleton wrote:
> Okay, I added the following line just after the other regular
> expression:
>
> reqrep ^Host:\ .* Host: s3.amazonaws.com
>
> Which, in my estimation, should rework the host line, no? Tried this
> but still no luck. I do, however, get a different error. Rather than
> tell me the bucket <hostname> doesn't exist, it tells me that a hashed
> key (which looks like an actual bucket hash) so something is happening.
>
> Am I doing that host line correctly?

I think you missed a backslash after the rewritten "Host:". Also, take care of always disabling case sensitiveness when matching headers. It should look like this :

   reqirep ^Host: Host:\ s3.amazonaws.com

Regards,
Willy Received on 2008/09/30 00:50

This archive was generated by hypermail 2.2.0 : 2008/09/30 01:01 CEST