[squid-users] help to configure squid in below requirement

2016-09-23 Thread Bill Yuan
I want to configure squid as a "traffic bouncing" server as below

I am running squid on 192.168.1.1:3128
when I request URL "http://192.168.1.1:3128/www.yahoo.com/abc.png;
I hope I can get the png from "http://www.yahoo.com/abc.png;

Regards,
Bill
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Question about the url rewrite before proxy out

2016-09-23 Thread Bill Yuan
Did not resolve yet. anyone can help to provide an example plase



On 23 September 2016 at 07:57, Bill Yuan <byc...@gmail.com> wrote:

> Thanks for replying
>
> I see, it is a url rewrite  and i am trying to find an sample to have a
> test
>
>
> the content are not required to be updated if it is a image
>
>
> On Thursday, September 22, 2016, Alex Rousskov <
> rouss...@measurement-factory.com> wrote:
>
>> On 09/22/2016 04:20 AM, squid-us...@filter.luko.org wrote:
>>
>> > Then not only the request needs to be rewritten, but probably the
>> > page content too. [...] If that is the case,
>> > then Squid doesn't seem like the right tool for the job.
>>
>> Why not? If rewriting is needed, an ICAP or eCAP service can rewrite the
>> response body before Squid serves it.
>>
>> However, in practice, this kind of page rewriting does not work very
>> well (regardless of which software is doing the rewrite) because many
>> page URLs are formed dynamically on the client side (by Javascript code).
>>
>> Alex.
>>
>> ___
>> squid-users mailing list
>> squid-users@lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
>>
>
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


Re: [squid-users] Question about the url rewrite before proxy out

2016-09-22 Thread Bill Yuan
Thanks for replying

I see, it is a url rewrite  and i am trying to find an sample to have a test


the content are not required to be updated if it is a image


On Thursday, September 22, 2016, Alex Rousskov <
rouss...@measurement-factory.com> wrote:

> On 09/22/2016 04:20 AM, squid-us...@filter.luko.org  wrote:
>
> > Then not only the request needs to be rewritten, but probably the
> > page content too. [...] If that is the case,
> > then Squid doesn't seem like the right tool for the job.
>
> Why not? If rewriting is needed, an ICAP or eCAP service can rewrite the
> response body before Squid serves it.
>
> However, in practice, this kind of page rewriting does not work very
> well (regardless of which software is doing the rewrite) because many
> page URLs are formed dynamically on the client side (by Javascript code).
>
> Alex.
>
> ___
> squid-users mailing list
> squid-users@lists.squid-cache.org 
> http://lists.squid-cache.org/listinfo/squid-users
>
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users


[squid-users] Question about the url rewrite before proxy out

2016-09-21 Thread Bill Yuan
​Hello,

i am looking for a proxy which can "bounce" the request, which is not a
classic proxy.

I want it works in this way.
e.g. a proxy is running a 192.168.1.1
and when i want to open www.yahoo.com, i just need call
http://192.168.1.1/www.yahoo.com
the proxy can pickup the the host "www.yahoo.com" from the URI, and
retrieve the info for me​,

so it need to get the new $host from $location, and remove the $host from
the $location before proxy pass it.

it is doable via squid?

Regards
Bill
___
squid-users mailing list
squid-users@lists.squid-cache.org
http://lists.squid-cache.org/listinfo/squid-users