LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2010, 07:24 AM   #1
wmasry
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Rep: Reputation: 15
How to run multiple squid instances


Dears,

I need to run multiple squid instances on my server , I am running squid version squid-2.7.STABLE5-1.el4 on RHEL 4.7 , kindly tell me how to do so.

by the way , I need to run two instance because i need to configure my proxy to act as a reverse proxy and a forward proxy, and people told me that you cannot run a forward and reverse proxy on the same instance.

regards,
 
Old 09-20-2010, 07:52 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,820

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Hi,

You can start a second squid instance using the -f option to define a different squid.conf file.
Code:
/usr/sbin/squid -f /path/to/2nd-squid.conf
Keep in mind though, that the 2 instances must also listen on different ports.

Why don't you use some other server (like apache, or nginx) for reverse proxy?
 
1 members found this post helpful.
Old 09-21-2010, 02:24 AM   #3
wmasry
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Hi,

You can start a second squid instance using the -f option to define a different squid.conf file.
Code:
/usr/sbin/squid -f /path/to/2nd-squid.conf
Keep in mind though, that the 2 instances must also listen on different ports.

Why don't you use some other server (like apache, or nginx) for reverse proxy?
Thanks for your reply , I still have two other questions if you can help me with them.

1 - Can I make the two instances listen on the same ports but for different IPs?
2 - Can i include the configuration for the reverse proxy in the same configuration file for the forward proxy?

regards.
 
Old 09-21-2010, 03:00 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,820

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
1. Sure you can
2. I'm afraid you cannot mix options for a web cache proxy and a reverse proxy.
For example httpd_accel_port has a different meaning when squid is used as a cache proxy (it's the port used by clients), and when it's used as a reverse proxy (it's the backend server port).
 
1 members found this post helpful.
Old 09-22-2010, 12:10 AM   #5
wmasry
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
1. Sure you can
2. I'm afraid you cannot mix options for a web cache proxy and a reverse proxy.
For example httpd_accel_port has a different meaning when squid is used as a cache proxy (it's the port used by clients), and when it's used as a reverse proxy (it's the backend server port).
You helped too much , big thank you
 
  


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
How to run multiple instances of Rtorrent in Ubuntu arvin2212 Linux - Software 0 04-14-2010 12:26 AM
Squid multiple instances log problem Shwick Linux - Server 1 01-01-2009 10:08 PM
run xine in multiple instances? grmblhmpfth Linux - Software 0 06-13-2008 11:41 AM
kickstart; how-to info needed for multiple instances of RH OS's and multiple unique v Joe_Wulf Linux - Server 4 06-21-2007 11:18 PM
How to run multiple mail client instances on KDE desktop Raishan Linux - Desktop 4 12-16-2006 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration