Re: [squid-users] reverse proxy for ssl sites

2009-12-27 Thread Angelo Höngens
On 26-12-2009 5:06, Guido Marino Lorenzutti wrote:
 Hi people!
 Im using squid for reverse proxing a lot of sites for quite a few  
 years. The thing is that I have severeal sites that i need to give ssl  
 support and i can't find a way to tell the squid to act the same way  
 that he acts for the non ssl connections.
 
 This is my setup to work with the non ssl connections. I try and it  
 dosen't work by just telling to listen also in the port 443. Any links  
 that can help?

Here's an example squid config on my blog for a squid that listens on ssl:

http://blog.hongens.nl/guides/protect-owa-using-a-reverse-proxy/

-- 


With kind regards,


Angelo Höngens
systems administrator

MCSE on Windows 2003
MCSE on Windows 2000
MS Small Business Specialist
--
NetMatch
tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
+31 (0)13 5811088
+31 (0)13 5821239

a.hong...@netmatch.nl
www.netmatch.nl
--




[squid-users] 2 cache_dir on the same squid server ?

2009-12-27 Thread Hung Nguyen
hello folks,
Can I specify 2 cache_dir directives for one squid server? I meant two
cache_dir on 2 different disk to avoid disk failure ?
Thanks!


Re: [squid-users] 2 cache_dir on the same squid server ?

2009-12-27 Thread Jefferson Diego

Em 27-12-2009 14:17, Hung Nguyen escreveu:

hello folks,
Can I specify 2 cache_dir directives for one squid server? I meant two
cache_dir on 2 different disk to avoid disk failure ?
Thanks!


   
Yes, you can. You can specify how many cache_dir's you want, each in the 
same partition, or in different partition or even in a different drive.
But, it will not avoid problems if you have a disk failure. If the squid 
process try to write in a cache_dir, and this is not available (imagine 
that your drive is down, due to a failure), it will crash...

But why are you worried about a failure? Are your disks failling?


Re: [squid-users] 2 cache_dir on the same squid server ?

2009-12-27 Thread Hung Nguyen
Jefferson Diego wrote:
 Em 27-12-2009 14:17, Hung Nguyen escreveu:
 hello folks,
 Can I specify 2 cache_dir directives for one squid server? I meant two
 cache_dir on 2 different disk to avoid disk failure ?
 Thanks!



 Yes, you can. You can specify how many cache_dir's you want, each in
 the same partition, or in different partition or even in a different
 drive.
 But, it will not avoid problems if you have a disk failure. If the
 squid process try to write in a cache_dir, and this is not available
 (imagine that your drive is down, due to a failure), it will crash...
 But why are you worried about a failure? Are your disks failling?

Thank for reply,
No, I just plan for a bad day. Do you have any advice for me in this
situation: 2 cache_dir on different disk is better or just one cache_dir
on a disk with just one partition in it?



Re: [squid-users] 2 cache_dir on the same squid server ?

2009-12-27 Thread Jefferson Diego

Em 27-12-2009 15:02, Hung Nguyen escreveu:

Jefferson Diego wrote:
   

Em 27-12-2009 14:17, Hung Nguyen escreveu:
 

hello folks,
Can I specify 2 cache_dir directives for one squid server? I meant two
cache_dir on 2 different disk to avoid disk failure ?
Thanks!



   

Yes, you can. You can specify how many cache_dir's you want, each in
the same partition, or in different partition or even in a different
drive.
But, it will not avoid problems if you have a disk failure. If the
squid process try to write in a cache_dir, and this is not available
(imagine that your drive is down, due to a failure), it will crash...
But why are you worried about a failure? Are your disks failling?

 

Thank for reply,
No, I just plan for a bad day. Do you have any advice for me in this
situation: 2 cache_dir on different disk is better or just one cache_dir
on a disk with just one partition in it?



   
Ok... about the event of a bad day with your disks, I think that the 
right thing is to write a kind of daemon script to analyse the 
availabity of partitions, and if some of them are down, rewrite 
squid.conf without it and restart squid quickly.
And about your situation, 2 or more cache_dir on different disk are 
better, 'cause the squid process can parallelize I/O requests, improving 
the transfer performance.


(And sorry if I said some incompreensible thing, 'cause I'm brazilian 
and I still have a poor english)


Re: [squid-users] Question on Squid internals

2009-12-27 Thread Matus UHLAR - fantomas
On 23.12.09 12:47, Manjusha Maddala wrote:
 I'm totally puzzled as to how the LRU cache replacement policy has been
 implemented in Squid.
 
 Here's my situation.

[...]

 $ curl -H User-Agent: some useragent -H
 Accept-Encoding: gzip,deflate http://some-url;
 
 Squid access.log -
 
 xxx.xxx.xxx.xxx - - [23/Dec/2009:11:03:31 -0800] GET http://some-url
 HTTP/1.1 200 19114 - - - gzip,deflate
 TCP_MISS/FIRST_UP_PARENT446
 
 $ ll 001000FF
 ls: 001000FF: No such file or directory
 
 
 
 A page that is just 3 days old encountered a cache miss, even though the
 cached page is physically present on the disk. Could somebody explain
 why this has happened? The exact same URL is requested from the command
 line and Squid has removed its copy of the page after the command
 execution. If the copy has become stale, going by the refresh_pattern
 rules, a TCP_REFRESH_MISS should have got logged instead of TCP_MISS.
 Its really weird that the copy on the disk was deleted, and a TCP_MISS
 was reported. 

did you check if the page is cacheable? 
Did you try fetching it with Cache-Control: only-if-cached header?
It's quite possible that the page is not cacheable, so squid won't cache it,
or the cache has expired...

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
They say when you play that M$ CD backward you can hear satanic messages.
That's nothing. If you play it forward it will install Windows.