There are many ways of doing this.
1) install multiple HTTP daemons (apache source programs) with different root paths at config tim.
2) [The best method] Use virtual host containers indicating seperate config options and locations of sites/ports/etc.
If you need some examples or help regarding this just leave an email address and I'll send you some help regarding this.
Hi Floof,
this easiest way to do this is:
1) create a new .conf file (copy the old one)
2) amend the conf file to point to a diff port
3) amend PidFile to store in a new file
4) amend ScoreBoardFile to store in a new file.
5) then you can type httpd -f <your new file name>
I've tried this :
I have copied the full /etc/httpd tree to /etc/httpd2
I then have modified my conf file to launch httpd on
port 81 (the previou one was on port 80).
But I can't get both instances to work simultaneously
I get a "connection refused by server" error message.
Apache is quite happy to run multiple instances of itself as long as you specify a different conf file. You don't need to create a new httpd executable.
If Apache is already running on port 80, doing a "httpd -f {new confile}" will not harm the current running apache (but see my previous posting though).
Use your original httpd with your new httpd.conf file. This should be listening on a new port with the other modfications I mentioned earlier
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.