Re: Multiple Apcahe Instance in Chrooted Environment

From: David Efflandt (efflandt_at_xnet.com)
Date: 05/13/04


Date: Thu, 13 May 2004 18:21:17 +0000 (UTC)

On 13 May 2004 07:37:34 -0700, NoSphax <nosphax@hotmail.com> wrote:
> Hi all,
>
> I would like to install multiple instance of apache on the same
> server. Apache instance is in the same chrooted environment. The idea
> is to have specific apache in function of needs (version apache with
> php/mysql, php/Oraqcle, apache version 1.3.X and apache version
> 1.3.y). At this time each apache is compiled separately with a
> specific --prefix ( /usr/local/apache1, /usr/local/apache2, etc...).
> But I would like to build a generic package to have one binary apache
> that I could install where I want.
>
> However, I found in the httpd some hardcoded lib link, such as
> /usr/local/apache/libexec/blabla.so.
>
> How can I by pass this limitation of compiling each apache instance ?
>
> In a secure web environment (UNIX hardening system, chrooted
> environment), that is reasonable to have multiple apache instance?

I believe multiple apaches in chroot would be launched by inetd, since as
standalone daemon, only one could bind to port 80 on a particular IP
(unless bound to different IPs). Of course everything needed to run
apache would need to be reachable by any specified path within the chroot
jail (file copies or hard links, not symlinks outside of the chroot).

-- 
David Efflandt - All spam ignored  http://www.de-srv.com/


Relevant Pages

  • Log full directory paths for errors?
    ... We're trying to run Apache 2.0.55 in a chrooted environment, but are having problems getting it to work for even just the most basic request, and are getting 404 errors. ... For testing, we created a directory named "test" under the "htdocs" directory under the chroot directory, e.g., ...
    (comp.infosystems.www.servers.unix)
  • chrooted apache 2 on AIX - Killed
    ... I am setting up a chroot environment for apache (IBM IHS 2.0.47.1) on ... and exit code ...
    (comp.unix.aix)
  • chrooted apache 2 - Killed
    ... I am setting up a chroot environment for apache (IBM IHS 2.0.47.1) on ... and exit code ...
    (AIX-L)
  • Re: apache mod_ssl chroot problem
    ... I have problem running apache in chroot mode with ssl enable. ... Apache/2.2.6 mod_ssl/2.2.6 (Pass Phrase Dialog) ... Some of your private key files are encrypted for security reasons. ...
    (freebsd-questions)
  • Re: jails or chroot?
    ... putting each of my clients into their own jail or chroot. ... apache and their "mass virtual hosting", ... File access can be solved with suexec (compile apache with suexec ...
    (freebsd-questions)