LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 01-03-2013, 06:21 AM   #1
scanty
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Rep: Reputation: Disabled
Squid Allow Caching for selected websites only


Hi,

I am trying to have a squid server which allows all HTTP traffic to go as pass through(i.e. no caching) but cache only specific websites.

My squid.conf is like:
.
acl dst_acl dst all
acl allowed_website dstdomain .mywebsite.com

no_cache deny all
no_cache allow allowed_website

But squid is not caching the content for 'mywebsite.com'.

I am not sure what is wrong with the configuration.
Has anybody tried this before.

Thanks
 
Old 01-03-2013, 07:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
squid acl's are top down. Having a "deny all" above your chosen site prevents the lower entry being reachable.
 
1 members found this post helpful.
Old 01-04-2013, 02:38 AM   #3
uburcumi
LQ Newbie
 
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
what for? -_-"
 
Old 01-04-2013, 03:00 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
looks like they want to see the live version of their company website if any changes are made.
 
Old 01-04-2013, 05:51 AM   #5
scanty
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
thanks acid_kewpie, your suggestion saved my day
 
  


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 not caching Thakowbbery Linux - Software 5 05-03-2013 12:12 PM
Squid - permitting only selected pages tikit Linux - Software 1 08-09-2011 06:40 AM
squid caching help klingoncowboy4 Linux - Software 3 05-13-2011 06:19 PM
caching with squid kernelvn Linux - Networking 2 07-18-2005 12:54 AM
how to do caching on squid? gigi Linux - Software 2 02-23-2004 11:26 PM


All times are GMT -5. The time now is 02:22 PM.

Main Menu
Advertisement
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