Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-22-2005, 08:37 PM   #1
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.

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.
httpd_accel_single_host on

Would I just have to say?

httpd_accel_single_host off

and say maybe 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_uses_host_header on #required for virtual hosts
httpd_accel_port 80

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

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


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

All times are GMT -5. The time now is 01:21 PM.

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