Forum OpenACS Q&A: Response to Multiple Hostnames ONE OpenACS - HowTo

Collapse
Posted by David Walker on
With plain OpenACS 3.2.x, ForceHostP on (or true or 1 or whatever), just add www.site1.com, site1.com, www.site2.com, site2.com to your DNS all pointing to the same address.

A request for www.site2.com/whatever/whoever.adp will be redirected to www.site1.com/whatever/whoever.adp. This solves the cookie issue because your www.site1.com cookies will be used regardless of whether they type in or link to www.site1.com or www.site2.com.

The drawback is that their address bar will always show www.site1.com. For many sites this isn't a big deal.