• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
bob reilly
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic