aspose file tools*
The moose likes Tomcat and the fly likes How would I run two Apache web servers on the same box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How would I run two Apache web servers on the same box" Watch "How would I run two Apache web servers on the same box" New topic
Author

How would I run two Apache web servers on the same box

bob reilly
Ranch Hand

Joined: Jan 22, 2007
Posts: 44
How would you go about creating two Apache v2.x servers on the same machine - listening on two different ports?

Intially - would you require a new directory tree? Can you construct within the same? Beyond that - what are the configuration requirements?

This is specific for Apache. Any insights would be appreciated - thanks.
[ February 27, 2008: Message edited by: bob reilly ]
Joachim Rohde
Ranch Hand

Joined: Nov 27, 2006
Posts: 423

Is there any reason to have them in the same directory? (Don't know if it would work).
Else, taking two directories, you just have to change the port of one instance, fire them both up and you should be done.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Why have two instances, when a single instance can be configured to listen on two different ports, with different hosts, web roots and everything?
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Originally posted by David O'Meara:
Why have two instances, when a single instance can be configured to listen on two different ports, with different hosts, web roots and everything?


I agree with David. Installing two differnet server instances just for listening to two different ports doesn't make sense at all.

If, it is in any case unavoidable, then please specify your requirement.
bob reilly
Ranch Hand

Joined: Jan 22, 2007
Posts: 44
You've pretty much confirmed my expectations. There is as far as I know no need. My attempt would be to create one instance - listening on two different ports.

Thanks guys.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How would I run two Apache web servers on the same box
 
Similar Threads
applet-applet communication
which Linux servers?
How to run two Apache servers on same machine?
Tomcat to Apache Connection
How to cluster two Apache2.2 servers?