Re: [squid-users] Squid as HTTP accelerator

This is a discussion on Re: [squid-users] Squid as HTTP accelerator within the Squid Users forums, part of the Web Server and Related Forums category; Hi Guys, Currently the setup works for a single domain name. However I want it to work for multiple and ...


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 04-19-2004
Daniel Czarnecki
 
Posts: n/a
Default Re: [squid-users] Squid as HTTP accelerator

Hi Guys,

Currently the setup works for a single domain name. However I want it to
work for multiple and also each domain is associated to a different back
end server.

Kind Regards,

Dan


Sunil S wrote:

>I suppose what Henrik has written is the MOST appropriate, Please try
>that out.
>
>I am now using squid-3.0 for internal virtual hosts and it works like
>dream. I had used the setup I suggested in my earlier mail, with IP
>based hosts + name based virtual host in my private network + squid
>2.4.
>
>Still, in case you wish to use the redirect script, the following could
>be a simple example:
>-----------------------
>#!/bin/perl
>$|=1;
>while(<>){
>s@http://host.domain.com@http://10.10.10.10:8880/path@i; #
>10.10.10.10 - your private IP, 8880 - port etc...
>s@http://host.domain.com@http://host.domain.com:81/path@i; # To a
>different port
>s@http://host.domain.com@http://anotherhost.anotherdomain.com@i;
>print;
>}
>-----------------------
>Those which are not re-written by redirector script will be fetched by
>squid looking up at /etc/host.
>
>Once again, Henrik's mail seems to be the most appropriate set up
>according to me.
>
>Regards
>
>Sunil
>
>
>
>>>>Daniel Czarnecki <daniel@zoltak.com> 04/18/04 06:24AM >>>
>>>>
>>>>

>Will this work for named hosts configuration on Apache?
>
>Also could you send me an example redirection script?
>
>Or give can you give me an example of it's output?
>
>For 1. do you mean the external ip to the Squid box? Or do I need to
>create a
>DNS entry the same as the hosts file on the dns server?
>
>
>
>>1. Configured DNS to resolve all internal server's names to squid.
>>2. On squid, populated these names in /etc/hosts with private IP
>>addresses of the servers. (so that when squid fetch a page it is
>>
>>

>fetched
>
>
>>from private network)
>>
>>

>
>
>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 11:29 PM.


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