Apache Liferay覆盖其他域
我的问题很简单,尽管我找不到答案。 我想有4个网站运行Apache Liferay覆盖其他域,apache,liferay,Apache,Liferay,我的问题很简单,尽管我找不到答案。 我想有4个网站运行 htmlsite1.com htmlsite2.com htmlsite3.com portalsite.com htmlsite1.com是我的默认Apache服务器,而站点2/3是虚拟服务器。我希望门户从一个单独的虚拟服务器上运行。我决定将Liferay 6.1用于门户,我的HTML站点是通过Apache实现的。 HTML站点在安装Liferay之前已启动并运行 我的问题: 安装Liferay后,我的所有网站都重定向到Liferay
- htmlsite1.com
- htmlsite2.com
- htmlsite3.com
- portalsite.com
我的问题是:我可以在使用Liferay时运行标准HTML页面吗?我不确定您不清楚情况的哪一部分。我假设所有内容都是通过Apache提供的,但portalsite.com只是由Apache代理,然后转发给Liferay 假设您的门户在tomcat或其他支持“AJP”的appserver上运行,请阅读
mod_jk
以及如何使用它将流量中继到您的门户。您将得到一个与此类似的虚拟主机配置(伪代码配置,仅在此处键入,从未测试,请注意拼写错误…)
mod#u jk的外部“worker”配置文件,定义
#的连接属性
JkWorkersFile/path/to/your/jk/configuration
ServerName portalsite.com
#所有内容都应转发给tomcat。。。
JkMount/*你的tomcat工人
#…除了/static目录中的内容,该目录应为
#由Apache直接提供服务,不涉及tomcat
jk卸载/静态/*
非常感谢,这正是我要找的。
# external "workers" configuration file for mod_jk, defining
# connection properties for
JkWorkersFile /path/to/your/jk/configuration
<VirtualHost *:80>
ServerName portalsite.com
# all content should be forwarded to tomcat...
JkMount /* your_tomcat_worker
# ...except the content in the /static directory, which should be
# served by Apache directly, without involving tomcat
JkUnMount /static/*
</VirtualHost>