PATCH: vhost module doesn't work when not on port 80
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Perlbal > PATCH: vhost module doesn't work when not on port 80




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-05 10: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.







[ Post a follow-up to this message ]



    Re: PATCH: vhost module doesn't work when not on port 80  
Brad Fitzpatrick


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-17-05 10: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.
>
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:35 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register