Re: [squid-users] redirecting transparently to few different ports

This is a discussion on Re: [squid-users] redirecting transparently to few different ports within the Squid Users forums, part of the Web Server and Related Forums category; And what is your httpd_accel_single_host setting? If this redirection does not work then I suspect you have set httpd_accel_single_host to ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-12-2003
Henrik Nordstrom
 
Posts: n/a
Default Re: [squid-users] redirecting transparently to few different ports

And what is your httpd_accel_single_host setting? If this redirection does
not work then I suspect you have set httpd_accel_single_host to on which
will force Squid to always contact httpd_accel_host:httpd_accel_port no
matter what is indicated by the URL.

Regards
Henrik

On Thu, 11 Dec 2003, Rami Jaamour wrote:

> well, yes, I see what you are saying, I thought that I can do that, but
> here is my redirector:
>
> #!/usr/bin/perl
> $|=1;
> while (<>) {
>
> s@http://soaptest.parasoft.com/calcu...ulator-01.wsdl@;
>
> s@http://soaptest.parasoft.com/glue/...t.parasoft.com:8000/glue/calculator@;
> print;
> }
>
> The first one work fine, but the when there are port changes like the
> second one it does not work, I just get a 404 from apache on 81!
>
> Note that there is another HTTP server listening on
> http://soaptest.parasoft.com:8000 different than the apach on 80 which
> Squid is hooked into.
>
> Rami
>
> Henrik Nordstrom wrote:
>
> >On Thu, 11 Dec 2003, Rami Jaamour wrote:
> >
> >
> >
> >>I am running Squid on port 80, proxing to Apache httpd on 81, following
> >>the FAQs. I could use a redirector successfully to redirect from one
> >>URL to another on the same host and port, however, I'd like Squid and/or
> >>it's redirector to be able to route requests based on URL (ideally) or
> >>at least based on the sub domain name to a specific port on the same
> >>local machine it is running on.
> >>
> >>

> >
> >The redirector is free to do whatever you please as long as you do not
> >enable httpd_accel_single_host.
> >
> >Via the redirector interface you can divide the URL space of a single
> >domain (or multiple, your choice) in any way you please among different
> >web servers, while at the same time applying any transformations of the
> >URL-path you may need. You can for example send all requests for .jpg
> >images to one server, requests for .nfs files to another (Notes) server,
> >move things around if needed, etc etc.
> >
> >When you are not using httpd_accel_single_host then the reverse-proxying
> >process is rougly
> >
> > 1. Read the request and reconstruct a full URL based on httpd_accel_host
> >and httpd_accel_uses_host_header settings.
> >
> > 2. http_access access controls
> >
> > 3. Send the request to the redirector
> >
> > 4. Fetch the URL as returned by the redirector.
> >
> >Regards
> >Henrik
> >
> >
> >
> >

>
>


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:55 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0