【发布时间】: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.org和rs.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