• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 341
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic