Liferay和更多实例 [英] Liferay and more instances

查看:71
本文介绍了Liferay和更多实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于Liferay及其更多实例,我有一个简单的问题.

我有Liferay,可以通过myhost.com:8080与它联系.

现在,我将在Liferay 解决方案

Liferay的新实例包含一组全新的数据,例如LDAP等.如果要共享相同的配置,用户数据库等,最好只使用不同的站点.这样,您根本不会复制数据.另外,您可以更无缝地共享相同的主机名,以登录到不同的站点.

如果要寻址新实例,则会看到该实例需要一个虚拟主机名:您的服务器将需要通过不同的主机名进行访问.每当您以新实例的主机名(或属于该实例的任何站点的虚拟主机)访问服务器时,都将获得该实例的内容.如果您通过默认的虚拟主机,任何现有站点的虚拟主机或未知的虚拟主机,您将进入默认实例.

您可以通过UI(如您在第一个实例中所习惯的)或通过portal-ext.properties来进行单独的LDAP配置. Liferay随附的默认portal.properties应该包含一些实例特定配置的示例.请注意,并非所有设置都可以在portal-ext.properties中针对特定实例进行.另外,您可能需要知道实例的技术名称(例如,您在代码中以及可能在portal.properties中找到的名称)是"company"-如果偶然发现companyId,则为实例的ID.

I have a simple question about Liferay and more instance of it.

I have my Liferay and I can reach it by myhost.com:8080.

Now I would to create an other instance in Liferay Liferay - Portal Instances but I did not understand how I can reach my different instances by browser...

And, How can I configure my different instances about LDAP, CAS... (I would to use the same configuration but if it is not possibile I can copy same configuration for any instances)

解决方案

A new instance of Liferay contains a whole new set of data, e.g. LDAP etc. If you want to share the same configuration, user database etc., it might be better to just use different sites. This way you don't duplicate the data at all. Also, you can more seamlessly share the same hostname for logging into different sites.

If you want to address a new instance, you'll see that you need a virtual host name for that instance: Your server will need to be accessible through different hostnames. Any time you access the server under the hostname of your new instance (or any site's virtual host that belongs to that instance) you'll be served content from that instance. If you go through the default virtual host, any of the existing sites' virtual hosts, or an unknown virtual host, you'll get to the default instance.

You can do the separate LDAP configuration either through the UI (as you were used to in the first instance) or through portal-ext.properties. The default portal.properties that comes with Liferay should contain a few examples for instance-specific configuration. Note that not all settings can be done instance-specific in portal-ext.properties. Also, you might need to know that the technical name of an instance (e.g. what you find in code and possibly in portal.properties) is "company" - if you ever stumble upon companyId, this is the instance's ID.

这篇关于Liferay和更多实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆