| Author |
Message |
jti
Joined: 29 Oct 2007
Posts: 23
|
| Posted: Wed Nov 28, 2007 6:04 am Post subject: 2 apache servers via apt-get? |
|
|
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? |
|
| Back to top |
|
Xan
Joined: 08 Feb 2004
Posts: 286
Location: Austin
|
| Posted: Wed Nov 28, 2007 2:24 pm Post subject: |
|
|
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 |
|
| Back to top |
|
SteveG
Joined: 30 Nov 2003
Posts: 199
|
| Posted: Wed Nov 28, 2007 3:00 pm Post subject: |
|
|
| Unless there is some specific Apache 2.2 feature you need in the proxy layer, you could also use lighttpd as the proxy. |
|
| Back to top |
|
jti
Joined: 29 Oct 2007
Posts: 23
|
| Posted: Wed Nov 28, 2007 4:50 pm Post subject: |
|
|
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. |
|
| Back to top |
|
SteveG
Joined: 30 Nov 2003
Posts: 199
|
| Posted: Mon Dec 03, 2007 1:01 pm Post subject: |
|
|
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. |
|
| Back to top |
|
| |