在OpenCMS网站上更改域名

时间:2015-05-13 13:58:48

标签: java apache jsp tomcat opencms

我已经购买了在OpenCMS上运行的网站,并且已经将数据库迁移到我自己的系统。但是,我希望保留原始版本在old.子域上运行。这就是问题所在:

  • 原始的opencms域名是www.example.org(app)和rs.example.org(管理面板),现在,它正在运行新的webapp。
  • openCMS应该在old.example.org
  • 上运行
  • 服务器上的httpd(端口80)配置为将请求重定向到tomcat(localhost:8080),/etc/hosts已为www.example.orgrs.example.org
  • 编写了127.0.0.1的硬编码
  • OpenCMS config opencms-system.xml包含以下内容:

    <sites> <workplace-server>http://rs.example.org</workplace-server> <default-uri>/sites/default/</default-uri> <shared-folder>/shared/</shared-folder> <site server="http://rs.example.org" uri="/sites/default/"/> <site server="http://www.example.org" uri="/sites/www.example.org/" /> </sites>

我试图简单地改变&#34;服务器&#34; XML中的属性配置和修改主机(将www.更改为old.)。

结果不是我所期待的 - webapplication已经开始,但是使用了完全不同的模板(主页的不同html输出)。

任何想法,如何只运行域更改才能运行相同的应用程序?

应用程序在gentoo服务器上运行。

1 个答案:

答案 0 :(得分:0)

这个正在运作:)

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