【问题标题】:Change domain name on OpenCMS website在 OpenCMS 网站上更改域名
【发布时间】:2015-05-13 13:58:47
【问题描述】:

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

  • 原来的opencms域是www.example.org(应用程序)和rs.example.org(管理面板),现在,它是新的webapp运行的地方。
  • openCMS 应该在old.example.org 上运行
  • 服务器(端口 80)上的 httpd 配置为将请求重定向到 tomcat(localhost:8080),/etc/hosts 已硬编码 127.0.0.1 为 www.example.orgrs.example.org
  • OpenCMS 配置 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>

我尝试简单地更改 XML 配置中的“服务器”属性并修改主机(将 www. 更改为 old.)。

结果出乎我的意料 - 网络应用程序已经启动,但使用了完全不同的模板(主页的不同 html 输出)。

有什么想法,如何才能在只更改域的情况下运行相同的应用程序?

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

【问题讨论】:

    标签: java apache jsp tomcat opencms


    【解决方案1】:

    这个正在工作:)

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

    【讨论】:

      猜你喜欢
      • 2017-01-17
      • 2021-10-28
      • 1970-01-01
      • 1970-01-01
      • 2011-06-09
      • 2021-01-07
      • 1970-01-01
      • 1970-01-01
      • 2011-10-19
      相关资源
      最近更新 更多