LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-11-2004, 03:19 PM   #1
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Question Squid Cache Site Exceptions??


just a quick question...

i'm using squid as a transparent proxy on a linux gateway...

what is the procedure for setting certain sites so they don't get cached by squid??
 
Old 12-11-2004, 03:46 PM   #2
Roach
Member
 
Registered: Jul 2004
Location: Harare, Zimbabwe
Distribution: Redhat 9 (Shrike) Kernel 2.4.20-31.9
Posts: 37

Rep: Reputation: 15
Try this in your squid.conf

acl QUERY urlpath_regex cgi-bin \?
acl PHP url_regex .php?
no_cache deny QUERY
no_cache deny PHP

It tells squid not to cache PHP and cgi

You can add other sites by either their ip address or name

R :-)

Last edited by Roach; 12-11-2004 at 03:49 PM.
 
Old 12-11-2004, 04:33 PM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
cool. thanks roach.

=)


one question: what does the "\?" mean??
 
Old 12-12-2004, 05:08 PM   #4
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
BUMP

what would it look like if i wanted to disable the cache for cnn.com, reuters.com, and foxnews.com, for example???


Last edited by win32sux; 12-12-2004 at 05:10 PM.
 
Old 12-13-2004, 06:51 AM   #5
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
acl newscast destdomain .cnn.com .reuters.com .foxnews.com
no_cache deny newscast

I think...
 
Old 12-13-2004, 08:28 AM   #6
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by cidrolin
acl newscast destdomain .cnn.com .reuters.com .foxnews.com
no_cache deny newscast

I think...
makes sense... i'll try it... thank you...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid - Cache Manager ScooterB Linux - Networking 23 06-03-2008 09:15 AM
Squid Cache I think it is AJones Linux - Security 1 07-03-2005 06:50 AM
Squid Question - Add exceptions to cache cortj Linux - Networking 3 11-22-2004 09:41 AM
squid cache error woods Linux - Networking 3 10-29-2004 02:05 PM
squid authentication exceptions kcourser Linux - Networking 0 01-12-2004 11:19 AM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration