commands to set up a second apache to act as http server?

commands to set up a second apache to act as http server?

am 04.01.2008 10:09:23 von Bennett Haselton

If I have a Linux box already running Apache as a regular http server,
are there some simple commands that I can run to set up a second copy
of Apache on the same machine that would listen on a different port
and act as an http proxy server? (Which for security I could then set
up to accept only connections from certain IP addresses, by editing
httpd.conf.) Ideally the two copies of Apache would not interfere
with each other except to the extent that they shared the same CPU.

Or is there no simple way to take a machine with one copy of Apache
installed on it, and clone it to a second copy of Apache installed on
the same machine? Would I have to go through a full second Apache
installation? (The more steps involved, the greater the chance of an
error...) And then it seems it could get complicated if you want them
to be installed as two separate services that can be stopped and
started independently of each other -- the second installation is
going to want to default to be called "httpd" just like the first one,
so is there a way to change that, and to resolve other problems you'd
run into?

-Bennett

Re: commands to set up a second apache to act as http server?

am 04.01.2008 10:16:00 von unknown

Post removed (X-No-Archive: yes)

Re: commands to set up a second apache to act as http server?

am 04.01.2008 19:47:34 von Bennett Haselton

On Jan 4, 1:16=A0am, Davide Bianchi
wrote:
> On 2008-01-04, Bennett Haselton wrote:
>
> > If I have a Linux box already running Apache as a regular http server,
> > are there some simple commands that I can run to set up a second copy
> > of Apache on the same machine that would listen on a different port
> > and act as an http proxy server?
>
> Use a real proxy, like Squid.
>
> Anyway, to answer your qyestion, copy the configuration file
> into a different name, change the port number in the new config file and
> run httpd -f newconfigfile to run a second instance of apache using
> the new config file.

Thanks. Although how would I then configure the proxy to start
automatically on bootup? And is there a special command for starting/
stopping that second instance of httpd separately from the main
running one?

(I'm not sure I'm using the terminology correctly -- the "main httpd"
already has multiple "instances" for handling all the htt requests
coming in on port 80, so for my separate apache running as a proxy on
another port, is that another "instance", or is that called another
something-else?)

Re: commands to set up a second apache to act as http server?

am 04.01.2008 19:55:03 von unknown

Post removed (X-No-Archive: yes)