Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Nov 28, 2007 7:04 am 
Offline
Junior Member

Joined: Mon Oct 29, 2007 10:12 am
Posts: 33
I would like to run two apache2 web-servers on Ubunto 6.06, an apache 2.2 front-end server sending requests via proxy-pass to a mod_perl2 backend server running on port 81.

I have the mod_perl-enabled backend server (2.0.55) up and running using apt-get, and could do a manual compile & install of apache 2.2 from source, but would like to use apt-get to install & configure it.

Is it possible to install v2.2 using aptitude, and without over-writing my existing installation?


Top
   
 Post subject:
PostPosted: Wed Nov 28, 2007 3:24 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
You can run two instances of the same apache binary with different configurations. Something like:

Code:
cp -a /etc/apache2 /etc/apache2-secondary


Set up the configuration in the apache2-secondary directory, then fire off something like:
Code:
httpd -f /etc/apache2-secondary/apache2.conf -k start


Top
   
 Post subject:
PostPosted: Wed Nov 28, 2007 4:00 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
Unless there is some specific Apache 2.2 feature you need in the proxy layer, you could also use lighttpd as the proxy.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.
-- seen on the net


Top
   
 Post subject:
PostPosted: Wed Nov 28, 2007 5:50 pm 
Offline
Junior Member

Joined: Mon Oct 29, 2007 10:12 am
Posts: 33
Nothing specific to Apache2, it's just that I need the ProxyPass functionality for the front-end and am very familiar with Apache2 config but have never used lighttpd. Might have a go though. Is lighttpd easy to set-up for 6.06 using apt-get? And can it do proxypass (or equivalent)?

And thanks Xan, that looks like an easy one to try for starters.


Top
   
 Post subject:
PostPosted: Mon Dec 03, 2007 2:01 pm 
Offline
Senior Member

Joined: Sun Nov 30, 2003 2:28 pm
Posts: 245
Lighttpd should be able to do what you need; the doc for the proxy module is at http://trac.lighttpd.net/trac/wiki/Docs%3AModProxy. In Debian, lighttpd is just an apt-get away; don't know about Ubuntu.

OTOH, just running two instances of apache with different config files might be more convenient. The advantage (to my experience) of lighttpd is less memory use.

_________________
The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world.

-- seen on the net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group