LinuxQuestions.org
Help answer threads with 0 replies.
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 02-15-2013, 10:33 AM   #1
sjfast911
LQ Newbie
 
Registered: Jul 2007
Distribution: Sles
Posts: 10

Rep: Reputation: 0
Running Multiple Apache Instances?


Good morning,

I have been given the task of creating multiple instaces of Apache as a reverse proxy on a single server. We are running Sles11sp1 and Apache 2.2.12-1.28.1. What is the best way to do this? I have found numerous articles but none so far that tell you how to do from start to finish, with detailed instructions. Does this type of documentation exist for this? Any recommendations?

Thanks
Scott
 
Old 02-16-2013, 11:10 PM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
What issues specifically can't you overcome? Or what guidance do you need specifically need? If you have Linux and Apache installed all ready you're 2/3 the way there. Any guide that shows you how to do one site via reverse proxy should do, just repeat the steps for each site. As far as multiple instances of Apache all you have to do is configure how many threads you want at start up, it will dynamically generate more threads to handle requests as it runs low.
 
Old 02-18-2013, 07:59 AM   #3
sjfast911
LQ Newbie
 
Registered: Jul 2007
Distribution: Sles
Posts: 10

Original Poster
Rep: Reputation: 0
Here is some history on this. Currently we have Apache reverse proxy instances running on mayny SLES9 servers, a very old version Apache. The person who created this is not longer with the company and no one else knows how to do it. So we want to migrate the instances over to SLES11. However this person did not configure Apache with the installation defaults, for example on SLES 11 the default installation directory is /etc/apache2. The creator of the SLES9 Apache instances has the instances running in /opt/apache2/instancename/. There are three files that control each instance, http_instancename.conf, apachectl_instancename, and apache_instancename. There are a dozen or more instances running on each server. So what I have tried to do so far, I installed Apache2 to the default directory /etc/apache2/. Then I have created /etc/apache2/instancename/ directories. Each of my instances contains for files, default-server.conf, httpd.conf, listen.conf, instancename.sh and a folder named sysconfig.d. Also each instancename has to have it's own logs and log file directory which I have done. I have the log directories for each instance in /var/log/apache2/instancename. I am able to get all the instances running. However, I have not put the proxypass/reverse proxy code into each instance. Simple trying to figure out what is the best way to do this and also to get it working at the basic level.

So from what I have told you so far, am I doing this correctly or is there a better way? Any suggestions or help you can provide is greatly appreciated.


Scott
 
Old 02-18-2013, 08:21 AM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
You said you needed separate logs, so I guess you are doing it the way you need to do it. I would have simplified my life if I could. But everyone's needs are different.

At this point it sounds like everything you need to do is done except configure the proxy part of Apache. Just configure each instance for reverse proxy for the site it's supposed to service. You should then be done.
 
  


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
Multiple instances of apache2 running? idofxeno Linux - Newbie 16 02-22-2013 01:53 AM
Multiple Apache Instances piforever Red Hat 4 10-05-2008 09:18 AM
Running multiple instances of apache2 jordankoppole Linux - Software 8 04-23-2008 05:55 PM
Multiple Apache instances on Debian solferino Debian 2 08-23-2005 09:44 AM
Why are multiple instances of mysqld running? philpq Linux - Newbie 2 02-17-2005 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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