Can I run 2 different apache servers on the same machine on different ports?
9,788
Yes, it is possible.
You just have to use two different configuration files which differ (at least) in their Listen directives. Also read Setting which addresses and ports Apache uses.
Related videos on Youtube
Author by
Roman
Updated on September 17, 2022Comments
-
Roman over 1 year
Is it possible? If it is the case, how can I do it? I need it since I want to test communication between web servers on a local network and I do not have a local network. I just have one computer. I use apache on Windows 7.
-
Zoredache about 14 yearsHave you considered just using something like VirtualBox or Vmware to setup multiple virtual machines? Virtual machines will give you a more realistic setup, and it will probably be a lot easier to setup.
-
Roman about 14 years@Zoredache, I actually did not considered this possibility since I did not know about it. Thanks for the advice, I will consider this possibility.
-
John Gardeniers about 14 yearsI'm curious about what sort of communication you're trying to test because web sites normally don't talk to each other. Perhaps we can suggest another method.
-
Zoredache about 14 years@John Gardeniers, web sites talk to each other all the time these days. It is call web-services.
-
John Gardeniers about 14 years@Zoredache, that's a pretty small percentage of sites though, so not the norm.
-