LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05: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, 06:39 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 01:38 AM   #3
uburcumi
LQ Newbie
 
Registered: Jan 2013
Posts: 3

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

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
looks like they want to see the live version of their company website if any changes are made.
 
Old 01-04-2013, 04: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:57 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
Open Source Consulting | Domain Registration