/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-02 / Port number in Host header

[ << ] [ >> ]

[ https certificate error / "wsws" ... ] [ Pound 2.0.1 on VMware ESX? / Jeffrey Brown ... ]

Port number in Host header
"Jacky C.K Tsoi" <cktsoi(at)school.hk>
2006-02-17 09:00:28 [ FULL ]
Hi all,

We've found that Pound will append a port number (the port number pound 
is currently listening) to the "Host:" header of the request if it is 
not specified in the original header.

The problem is that we've multiple pound instance listening in the same 
machine, one of them is listening on port 82.   And we use Firewall NAT 
to forward incoming port 80 request to pound's port 82 with backend 
listening on port 80.

So, while the client's request header is "Host: www.abc.com", it becomes 
"Host: www.abc.com:82" when it arrives at the backend server, and since 
the backend application rely on the host header to function, it could 
not operate properly.

What I'd like to know is, is this behavior by design and what is the 
purpose/reason of appending the port number?

Thank you so much.


Best Wishes,

Jacky C.K Tsoi

Re: [Pound Mailing List] Port number in Host header
Robert Segall <roseg(at)apsis.ch>
2006-02-17 14:01:51 [ FULL ]
On Fri, 2006-02-17 at 16:00 +0800, Jacky C.K Tsoi wrote:[...]

This was intentional behaviour, in order to support various redirection
mechanisms.

It is no longer the case in the 2.x series. Upgrading would solve your
problem.[...]

Re: [Pound Mailing List] Port number in Host header
"Jacky C.K Tsoi" <cktsoi(at)school.hk>
2006-02-20 03:13:51 [ FULL ]
We've tested a little of version 2.0, but it seems that the CheckURL 
feature has been changed to RegEx of the whole URL and configuring it is 
more clumsy than in version 1.x which use qid and qval.

Is it possible to have some sample to show how to utilize the CheckURL 
feature more efficiently?

Thanks.




Robert Segall wrote:[...][...][...]
Attachments:  
text.html text/html 1964 Bytes

MailBoxer