What we are trying to do (for a research project) is to change the content that is being sent to the client. However, we don't like to have to deal with all the different cases that HTTP can be used (for instance, CONNECT, HEAD, range queries, and other commands) We therefore decided to use squid to deal with the requests. So, squid will grab the result from the original Web server, and send it to our program for modifications and wait for our program to respond. Squid will then send the results it gets from our program to its client.

This program can be, for instance, filtering "bad content" or, changing dollar amounts to Euro amounts, or... changing all the occurrences of "Microsoft Windows" to "Linux"

Regards,
--Sasan

Lakshmi R wrote:

Hey r u looking for load balancing or one primary server ..... becoz replication is something which can be done locally.. i guess that is done using hasing algorithm...
If load balancing then it can be done through DNS or CARP load balancing...
regards,
-Lakshmi


Chris Perreault <[EMAIL PROTECTED]> wrote:

    It sounds like you want a second proxy out on the internet that is
    replicated with the data from the primary proxy server. If you
    explain the
    purpose of the internet based server that is collecting cached
    information
    from the main proxy, maybe that will help. i.e. is there another
    set of
    users using this second cached server?

    Chris

    -----Original Message-----
    From: Sasan Dashtinezhad [mailto:[EMAIL PROTECTED]
    Sent: Wednesday, August 04, 2004 12:21 PM
    To: Lakshmi R
    Cc: [EMAIL PROTECTED]
    Subject: Re: [squid-users] Using a helper program with squid

    Thanks Lakshmi,

    I think I understand your solution. But as I explained in my other
    response,
    I need squid to "send the results it has for the client (coming
    either from
    its cache or the original Web server), to another server, and read the
    response from that se! rver, and send that to its client."
    I do want squid to contact the original Web server...

    Sorry folks if you're tired of seeing the same question re-stated
    in several
    emails.

    Regards,
    --Sasan

    On Wed, 4 Aug 2004, Lakshmi R wrote:

    >
    > Hi Sasan,
    > First, you need to give Squid a parent cache. Second, you need
    to tell
    Squid it can not connect directly to origin servers. This is done
    with three
    configuration file lines:
    > cache_peer parentcache.foo.com parent 3128 0 no-query default
    acl all src 0.0.0.0/0.0.0.0 never_direct allow all
    > Note, with this configuration, if the parent cache fails or becomes
    unreachable, then every request will result in an error message.
    >
    >
    > In case you want to be able to use direct connections when all
    the parents
    go down you should use a different approach:
    > cache_peer parentcache.foo.com parent 3128 0 no-query
    prefer_direct off
    > The default beh! aviour of Squid in the absence of positive ICP,
    HTCP, etc
    replies is to connect to the origin server instead of using
    parents. The
    prefer_direct off directive tells Squid to try parents first.
    >
    > I guess this is what u r looking for....
    >
    > regards,
    > -Lakshmi
    >
    > Sasan Dashtinezhad wrote:
    > Has anybody gotten a chance to look at the replied email? I'd
    > appreciate it if somebody could at least give me a "yes or no"
    response.
    >
    > Regards,
    > --Sasan
    >
    > Sasan Dashtinezhad wrote:
    >
    > >Hi folks,
    > >
    > >I'm trying to use squid as my proxy, but in a rather weird
    setup. I
    > >need the HTTP packets to be sent to another connection (not the
    > >original connection from which the request was received) and then
    > >read the response from another connection and send that to the
    > >original connection. I.e., client sen! ds request to squid squid
    > >connects to original server squid reads response R squid sends
    R to
    > >x.y.z:p (somewhere on the Internet) and closes the connection when
    > >done squid opens a new connection to x.y.z:p to read the response
    > >squid reads response R'
    > >squis sends R' to client
    > >
    > >I know that squid is a powerful tool and can be configured in
    several
    > >ways. Is it possible for me to do all of this (or something
    similar)
    > >using the configuration mechanisms of squid? Or do I have to dive
    > >into the source code and try implementing this myself...? (I'm
    having
    > >a feeling that I might be able to do this using peers.)
    > >
    > >Any help is strongly appreciated.
    > >
    > >Regards,
    > >--Sasan
    > >
    > >
    > >
    >
    >
    >
    >
    > Lakshmi
    >
    > ---------------------------------
    > Do you Yahoo!?
    > New and Improved Yahoo! Mail - 100MB free storage!



 Lakshmi

------------------------------------------------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail <http://us.rd.yahoo.com/mail_us/taglines/100/*http://promotions.yahoo.com/new_mail/static/efficiency.html> - 100MB free storage!




Reply via email to