>>>> ----- Original Message ----- 
>>>> From: "Brad Taylor" <[EMAIL PROTECTED]>
>>>> To: "Squid Users" <squid-users@squid-cache.org>
>>>> Sent: Wednesday, August 24, 2005 11:05 AM
>>>> Subject: [squid-users] Reverse Proxy Multiple IP Addresses
>>>> 
>>>> 
>>>> I'd like to know how to reverse proxy multiple IP addresses or run
>>>> multiple squids on one box to do this. They are not different 
>>>> domains so
>>>> I can't use host headers. Basically I'd like Squid to accept http
>>>> requests on 3 different IP addresses and proxy for 3 different IP
>>>> addresses (3 real servers). The 3 real servers have the same 
>>>> content so
>>>> I would like to not have to have 3 separate squid boxes.
>>>> 
>>>> Can Squid do this, I'm not able to find it anywhere in the FAQ or the
>>>> Squid book.  Thanks your any help.
>>>>
>>> -----Original Message-----
>>> From: Dan DeLong [mailto:[EMAIL PROTECTED]
>>> Sent: Thursday, August 25, 2005 8:54 AM
>>> To: Squid Users
>>> Subject: [SPAM] - Re: [squid-users] Reverse Proxy Multiple IP 
>>> Addresses
>>> - Email found in subject
>>> 
>>> You can easily do this by starting multiple squid instances on your 1
>>> squid
>>> box.  Start squid with the -f option to point to a unique 
>>> squid.conf for
>>> 
>>> each IP address.  Make sure each squid.conf has the correct http_port
>>> tag
>>> which is the ip address squid is listening on and the correct
>>> httpd_accel_host and httpd_accel_port for where its passing 
>>> the info (to
>>> the
>>> real server)
>>> 
>>> What I've done is create a ./conf/squid.conf ./cache ./logs for each
>>> squid
>>> instance and make sure all the tags in my squid.conf point to the
>>> correct
>>> ./cache ./logs etc.  This keeps the cache and logs separate for each
>>> instance.
>>> 
>> ----- Original Message ----- 
>> From: "Brad Taylor" <[EMAIL PROTECTED]>
>> To: "Dan DeLong" <[EMAIL PROTECTED]>; "Squid Users" 
>> <squid-users@squid-cache.org>
>> Sent: Thursday, August 25, 2005 11:15 AM
>> Subject: [squid-users] RE: [SPAM] - Re: [squid-users] Reverse 
>> Proxy Multiple 
>> IP Addresses - Email found in subject
>> 
>> 
>> I do see now that http_port allows an IP address in addition 
>> to a port.
>> Thanks for the help.
>> 
> 
> -----Original Message-----
> From: Dan DeLong [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 25, 2005 1:18 PM
> To: Squid Users
> Subject: Re: [squid-users] RE: [SPAM] - Re: [squid-users] 
> Reverse Proxy
> Multiple IP Addresses - Email found in subject
> 
> 
> Brad,
> 
> I think you're all set on the http_port tag 
> (xx.xx.xx.xx:port) and yes you 
> have to have multiple IP addresses on the box to handle the 
> multiple squid 
> instances.
> 
> As far as sharing the cache directory, I don't know of any 
> reason you can't. 
> The best answer I can give you for why we have them separate 
> is that "we've 
> always done it that way".  Poor answer but the best I can give you.
> 
 
Yikes...  Running multiple Squid processes sharing the same cache_dir is just 
asking for trouble.  Each instance will assume that it has the directory to 
itself, and will not inform other instances when it adds or removes files.  
Each instance will also assume that it has however much space assigned to that 
cache dir; three processes will use three times as much space as you might 
expect with this setup.

In any case, one Squid instance should be capable of doing what you are asking 
for:

http://www.squid-cache.org/mail-archive/squid-users/200010/0704.html

Reply via email to