Forum OpenACS Q&A: Multiple installations using different hostnames

Is it possible to have multiple OpenACS installations on the same machine and use different hostnames to differentiate the sites?
Collapse
Posted by Bart Teeuwisse on
James,

there are various virtual hosting options. For AOLserver 3.x I recommend nsvhr/nsunix available from http://sourceforge.net/cvs/?group_id=3152

Browse the AOLserver CVS tree http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/aolserver/ and you'll find the documentation (which is included with the modules).

Search the OpenACS site for 'virutal hosting' to get answers to most questions relating to virtual hosting as well as other virtual hosting options.

/Bart

Collapse
Posted by Joel Aufrecht on
You can do this "out of the box" with the default OpenACS and linux if each hostname has its own IP address.
Collapse
Posted by Dis Continued on
That's exactly what I'd like to do Joel. Can you point me to some documentation on how to do this? Thanks.
Collapse
Posted by Joel Aufrecht on
Just to verify: You have one machine, which is foo.mydomain.com. You want it to have two completely different OpenACS instances, sharing nothing, one on foo.mydomain.com and the other on bar.mydomain.com, and you can give each of those two domain names a different IP address. If you only have one IP address for both, then you have to do the nsvhr/nsunix virtual hosting Bart described, which lets one instance of AOLserver direct incoming traffic to either of two places based on the host name in the request.

So. Normally, each OpenACS service has a matching instance of AOLserver - that is, when you fire up an AOLserver process with a config file it's tied to exactly one OpenACS service. So you need multiple services, each with a different aolserver config file, and each aolserver config file needs to have a different address. And the host machine needs IP aliasing so that it's listening on both IPs. (mini-HOWTO)

Essentially, you need to do Install OpenACS 4.6.x twice, once for each service, once replacing "server0" with "foo" and once replacing "server0" with bar. And each config.tcl file needs a different "address".

Each instance is isolated, sharing only the base software like AOLserver and Postgres. So they can't share any OpenACS code or data (like users) and have to be upgraded separately.

Collapse
Posted by Dis Continued on
Many thanks - that nicely explains it.