Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th January 2009, 15:57
marchost marchost is offline
Junior Member
 
Join Date: Feb 2008
Posts: 27
Thanks: 1
Thanked 4 Times in 4 Posts
Default Question on : How To Set Up A Caching Reverse Proxy With Squid 2.6 On Debian Etch

I have two questions about the howto...

My server is currently hosting around 10 domains, one of them is quite busy.

I would like to cache only one of the domain, will those line in squid.conf be enough ? :

# Basic parameters
visible_hostname www.example.com

# This line indicates the server we will be proxying for
http_port 80 defaultsite=www.example.com vhost

What about otherdomain.com, will it work as if there was no proxy?

My second question is whats happening with pages that dont have the standard header :

"Cache-Control: must-revalidate, max-age=0, s-maxage=600"


What if I dont give any directive to squid about caching, will the page be cached or not?

If yes, is there any way only to cache pages have the to-cache header?

thanks!
Marc
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2009, 13:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Quote:
Originally Posted by marchost View Post
I would like to cache only one of the domain, will those line in squid.conf be enough ? :

# Basic parameters
visible_hostname www.example.com

# This line indicates the server we will be proxying for
http_port 80 defaultsite=www.example.com vhost

What about otherdomain.com, will it work as if there was no proxy?
I'm not quite sure if this is enough, you'd have to test it. If it doesn't work, you might have to create some acls, or you give your other web sites headers that tell Squid not to cache them.

Quote:
Originally Posted by marchost View Post
My second question is whats happening with pages that dont have the standard header :

"Cache-Control: must-revalidate, max-age=0, s-maxage=600"


What if I dont give any directive to squid about caching, will the page be cached or not?
I don't think it will be cached then, but that also depends on the other headers (e.g. if there's an "Expires" header, etc.).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th January 2009, 15:06
marchost marchost is offline
Junior Member
 
Join Date: Feb 2008
Posts: 27
Thanks: 1
Thanked 4 Times in 4 Posts
 
Default

Thanks Falko, ill try that at night when its quiet and let you know the results...

Marc
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Running ISPConfig On Port 80 Using Apache's Reverse Proxy Feature VMartins Installation/Configuration 14 9th October 2008 19:47
Scheduled Backups With Rsyncbackup On Debian Etch question overdose HOWTO-Related Questions 2 30th August 2008 04:00
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 20:51
Question on Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) Horizon HOWTO-Related Questions 12 26th February 2008 21:22
The Perfect Setup - Debian Etch (Debian 4.0) mysql question paul55 HOWTO-Related Questions 9 4th November 2007 12:28


All times are GMT +2. The time now is 09:53.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.