LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deny to cache a website in squid (https://www.linuxquestions.org/questions/linux-newbie-8/deny-to-cache-a-website-in-squid-713745/)

ridwan77 03-23-2009 05:10 AM

Deny to cache a website in squid
 
hi all,

I have a squid running in Fedora core server. i don't want squid to cache a specific website. Can anyone plz tell me how I am going to that ???????

GlennsPref 03-23-2009 07:43 AM

There are at least 2 ways to do this, depending on your setup.
1)
ref. http://wiki.squid-cache.org/SquidFaq...7d76914af54592
Quote:

Can I make Squid go direct for some sites?

Sure, just use the always_direct access list.

For example, if you want Squid to connect directly to hotmail.com servers, you can use these lines in your config file:

acl hotmail dstdomain .hotmail.com
always_direct allow hotmail
If you have trouble with this, check the version of squid you use, and search the squid faq (link above).

2) use the proxy section of the network setup in firefox or konqueror (or whatever browser you use) to not access the proxy for listed sites.
I use this as my main pc is the proxy and gateway server.

Cheers, Glenn

ridwan77 03-24-2009 05:10 AM

Thanks a lot GlennsPref. It works

GlennsPref 03-24-2009 08:45 PM

Glad to be of assistance

another of my favourite squid reference's is...

http://www.linuxhomenetworking.com/w...ess_with_Squid

cheers, Glenn


All times are GMT -5. The time now is 09:49 PM.