Re: [squid-users] Battling with setting up reverse proxy with URL rules

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Thu, 17 Oct 2013 01:09:37 +0300

Hey,

Noted inside..

On 10/17/2013 12:57 AM, Ali Kheyrollahi wrote:
> Hi all,
>
> I have read wiki, looked through many examples, googled, etc but could
> not find the answer.
>
> I would like to use Squid in dev environments to replicate part of the
> functionality provided by AKAMAI so that we can test in our local
> boxes and test streams. It might be something obvious but let me show
> you my requirement:
>
> I would like to (this is a minimal scenario)
>
> 1) set up a reverse proxy on my local machine on port 3128 (or any)

> 2) have 3 servers, lets call their hostnames: host.serv1, host.serv2
> and host.serv3

> 3) I would like / (root URL) to go to host.serv1
> 4) I would like /foo to go to host.serv2
> 5) I would like /bar to go to host.serv2/baaaz
you maybe talking about host.serv3 ^^ ??
Without url_rewrite or any other way that will make the request uinque
there is no such way..(there can be a url_rewrite on the web service
also which will be very easy to implement and much efficient)
use three different url schemes like:
all that starts with foo go to host2
all that starts with bar go to host3
all the rest go to host1

If it looks good to you Notify me and I will try to compile an example.

Eliezer

>
> I prefer not to use URL_Rewrite feature if I do not have to.
> Can you please show me a minimal set up please or point me to the
> right documentation?
>
> Many thanks
> Ali
>
Received on Wed Oct 16 2013 - 22:09:54 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 17 2013 - 12:00:06 MDT