LinuxQuestions.org
Register a domain and help support LQ
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 09-22-2005, 09:37 PM   #1
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Accelerated squid for 2 servers


Hi is it possible to do an accelerated squid that is on one machine, but pulls pages from virtual hosts on itsself and another host.



Code:
Browser    <---    Squid    <----- Vhost1/2/3 Machine 1
                                |-   Vhost 1/2/3 Machine 2


I always did same machine reverse proxy maybe stupid question.

I know having a single machine squid is easy, but I am not so sure about mixed accelerator settings

This looks promising


# TAG: httpd_accel_single_host on|off
# If you are running Squid as an accelerator and have a single backend
# server set this to on. This causes Squid to forward the request
# to this server, regardles of what any redirectors or Host headers
# say.
#
# Leave this at off if you have multiple backend servers, and use a
# redirector (or host table or private DNS) to map the requests to the
# appropriate backend servers. Note that the mapping needs to be a
# 1-1 mapping between requested and backend (from redirector) domain
# names or caching will fail, as cacing is performed using the
# URL returned from the redirector.
#
# See also redirect_rewrites_host_header.
#
#Default:
httpd_accel_single_host on

Would I just have to say?


httpd_accel_single_host off


and say maybe www.blafasel.com is ip of squid and in the hosts file I give the virtual servers on the squid machine + the IP and hostname of the other servers virtual servers, like I do with the reverse squid I have for the virtual servers on this domain?


What happens then with
these settings?

httpd_accel_host 127.0.0.1
httpd_accel_uses_host_header on #required for virtual hosts
httpd_accel_port 80


as I want to both accelerate 127.0.0.1 and x.x.x.x





Last edited by DrNeil; 09-22-2005 at 09:39 PM.
 
  


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
Configure 2 Squid Servers brains_online Linux - Networking 2 12-25-2004 01:11 PM
Accelerated NVidia Drivers (2.6.1) arrruken Slackware 3 01-28-2004 10:53 PM
Squid and FTP servers - very strange and urgent problem Zingaro2002 Linux - Networking 1 11-10-2003 05:37 AM
Sharing load between two Squid Servers chamkila Linux - Networking 1 02-22-2003 12:15 PM
Accelerated X-Server and RedHat 7.3 ashtar Linux - General 1 07-01-2002 04:15 PM


All times are GMT -5. The time now is 04:40 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