Foren

Single subsite portal-ext.properties

Renato Coneglian, geändert vor 12 Jahren.

Single subsite portal-ext.properties

New Member Beiträge: 4 Beitrittsdatum: 23.02.12 Neueste Beiträge
Hello guys,

Im with an issue with messageboards and searching here at forum i've found the solution. I'll have to change some settings at portal-ext.properties.
However, my customer says that those changes will affect other subsites he own in the same Liferay installation. He suggests that the changes could occur only in the subsite we administrate.

Is there any way to have one portal-ext.properties that affect only one subsite?

Thanks and sorry for my poor english.


(Portuguese below)

Estou com um problema com o messageboards e pesquisando no fórum encontrei a solução. Eu terei que alterar algumas informações do arquivo portal-ext.properties. Porém meu cliente diz que essas alterações afetarão os outros sites contidos na instalação do Liferay e sugeriu que a alteração ocorresse apenas para o subsite que administramos.

Alguma sugestão de como podemos fazer para que haja um portal-ext.properties que altere APENAS um subsite?


Muito obrigado.
thumbnail
David H Nebinger, geändert vor 12 Jahren.

RE: Single subsite portal-ext.properties

Liferay Legend Beiträge: 14914 Beitrittsdatum: 02.09.06 Neueste Beiträge
Nope, you'll have to hook this into place.
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Single subsite portal-ext.properties

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
It depends. Do you have your own domain url for the site (that is, are you in a multi-tenant setup with your own Liferay instance) or do you just adminstrator a community or organization within a single Liferay portal?

If the former, you'll be able to do for SOME properties.
#
# Each portal instance can have its own overriden property file following
# the convention portal-companyWebId.properties. To enable this feature, set
# the "company-id-properties" system property to true.
#
# To enable:
#
# java ... -Dcompany-id-properties=true
#
# The read order will now be: portal.properties, then portal-ext.properties,
# and then portal-liferay.com.properties.
#
# Note that not all properties can have different values per company. This
# functionality is only available for legacy reasons. The preferred way to
# configure a portal instance is through the Control Panel.
#
include-and-override=portal-${easyconf:companyId}.properties
include-and-override=${liferay.home}/portal-${easyconf:companyId}.properties
Renato Coneglian, geändert vor 12 Jahren.

RE: Single subsite portal-ext.properties

New Member Beiträge: 4 Beitrittsdatum: 23.02.12 Neueste Beiträge
We're administrating one organization, but we can send them files to replace. (We don't have access to the liferay files directly) But they argue the portal-ext.properties substitution we want to do will mess their configs of the other subsite.

So this tip can't be used?
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Single subsite portal-ext.properties

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
Seems you're not setup on a multi-tenant environment so your Liferay is running all on one set of portal properties.
Which setting did you request to be changed?
Renato Coneglian, geändert vor 12 Jahren.

RE: Single subsite portal-ext.properties

New Member Beiträge: 4 Beitrittsdatum: 23.02.12 Neueste Beiträge
Hitoshi Ozawa:
Seems you're not setup on a multi-tenant environment so your Liferay is running all on one set of portal properties.
Which setting did you request to be changed?


We're having the null message_boards return link, and de solution is:


For resolving this issue you have to set 3 properties in your portal-ext.properties file.

redirect.url.security.mode=ip
redirect.url.domains.allowed=
redirect.url.ips.allowed=127.0.0.1,SERVER_IP.

You can set your ip address instead of SERVER_IP by comma seprated.

Then after starting your liferay server you have to do some settings.

Here I mention the steps to do setting. just follow this.

1) Login as Admin
2) Go to setting -> Control Panel
3) set the virtual host name (like 192.168.100.113 or abc.xyz.com) and then save it.

And you found that you got the solution.
thumbnail
Hitoshi Ozawa, geändert vor 12 Jahren.

RE: Single subsite portal-ext.properties

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste Beiträge
If you're getting errors, all other users using the same instance of Liferay should also be getting the same error.

Tell the admin that's you're getting the error and all the other users are probably getting the same error making Liferay useless.