LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   2 apaches on 1 linux box (https://www.linuxquestions.org/questions/linux-newbie-8/2-apaches-on-1-linux-box-420121/)

bowie101 02-27-2006 02:42 PM

2 apaches on 1 linux box
 
I'm doing name-based IP addresses, and multiple daemons. I already have an apache server working. (this is a production machine.) rather than downloading and compiling apache again, is there some core apache file that I can just find already on the machine, copy it, and create a new instance of apache?

Thank you. B

tuxrules 02-27-2006 02:55 PM

Quote:

Originally Posted by bowie101
I'm doing name-based IP addresses, and multiple daemons. I already have an apache server working. (this is a production machine.) rather than downloading and compiling apache again, is there some core apache file that I can just find already on the machine, copy it, and create a new instance of apache?

Thank you. B

I don't think you can run multiple instances of apache on one machine. However, you can configure apache to use name-based or ip-based hosting.

Tux,

bowie101 02-27-2006 03:05 PM

i'm doing ip-based hosting, and multiple daemons.

so maybe the proper question, then, is .. what do i have to do
for multiple daemons?

bowie101 02-27-2006 03:09 PM

here's what apaches says for multiple daemons:

"Create a separate httpd installation for each virtual host. For each installation, use the Listen directive in the configuration file to select which IP address (or virtual host) that daemon services. e.g.

Listen www.smallco.com:80

It is recommended that you use an IP address instead of a hostname (see DNS caveats)."

bowie101 02-27-2006 03:40 PM

so, it talks about setting up multiple daemons, but doesn't address exactly how.

WhatsHisName 02-27-2006 04:16 PM

Doesn’t that just mean that you need to specify a different configuration file using the -f option for each httpd daemon you start?

From man httpd:
Quote:

-f config

Uses the directives in the file config on startup. If config does not begin
with a /, then it is taken to be a path relative to the ServerRoot. The
default is conf/httpd.conf.
I’ve only used a single httpd daemon for virtual hosting, so I have no practical experience with multiple httpd daemons. There seem to be several down sides to using multiple daemons.

bowie101 02-27-2006 04:36 PM

doing an intranet and another public website in addition to the SSL-enabled public website that's already up and running. So, the SSL and the intranet is why i'm thinking of doing it this way.

i'll look into what you are talking about with the man page.


All times are GMT -5. The time now is 12:10 AM.