LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2006, 03:42 PM   #1
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Rep: Reputation: 15
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
 
Old 02-27-2006, 03:55 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
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,
 
Old 02-27-2006, 04:05 PM   #3
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
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?
 
Old 02-27-2006, 04:09 PM   #4
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
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)."
 
Old 02-27-2006, 04:40 PM   #5
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
so, it talks about setting up multiple daemons, but doesn't address exactly how.
 
Old 02-27-2006, 05:16 PM   #6
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
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.
 
Old 02-27-2006, 05:36 PM   #7
bowie101
Member
 
Registered: Nov 2005
Distribution: FC4 & RHES
Posts: 105

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Apaches wwnexc Linux - Software 5 11-03-2005 09:53 AM
parsing apaches errorlogs pollo Linux - Newbie 0 03-29-2005 06:18 AM
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 05:49 PM
How to kill apaches performance purposly. jon_k Linux - Software 8 07-29-2003 12:26 AM
WHOA silver any apaches here wass29 Linux - Software 3 02-07-2003 01:29 PM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration