javaapachejsptomcatopencms

Change domain name on OpenCMS website


I have bought website running on an OpenCMS and I've migrated the database to my own system. However, I would like to keep the original version running on old. subdomain. And here's the problem:

I tried to simply change "server" attribute in XML config and modify hosts (change www. to old.).

Result was not what I was expecting - webapplication has started, but totally different template has been used (different html output for homepage).

Any ideas, what to do to be able to run the same application with only the domain change?

Application runs on gentoo server.


Solution

  • This one is working :)

            <site server="http://www.example.org" uri="/sites/www.example.org/">
                <alias server="http://old.example.org"/>
            </site>