Perlbal - PATCH: vhost module doesn't work when not on port 80

This is Interesting: Free IT Magazines  
Home > Archive > Perlbal > August 2005 > PATCH: vhost module doesn't work when not on port 80





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author PATCH: vhost module doesn't work when not on port 80
Martin Atkins

2005-08-17, 5:45 pm

While playing around with perlbal I've got it running on a nonstandard
port. I found that since the Host header contains a port number the
vhost module fails to match to the right vhost.

I think the easiest fix is just to strip the port off completely, and
the simple patch I've attached does that very thing. There seems little
point in using the client-supplied port number when there's a real port
number available on the socket itself.


Brad Fitzpatrick

2005-08-17, 5:45 pm

Go ahead and check it in with a Changelog update. Also \d is probably
better than . for after the colon.


On Wed, 17 Aug 2005, Martin Atkins wrote:

> While playing around with perlbal I've got it running on a nonstandard
> port. I found that since the Host header contains a port number the
> vhost module fails to match to the right vhost.
>
> I think the easiest fix is just to strip the port off completely, and
> the simple patch I've attached does that very thing. There seems little
> point in using the client-supplied port number when there's a real port
> number available on the socket itself.
>
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com