Foren

Portal instances

thumbnail
Rohit Rai, geändert vor 13 Jahren.

Portal instances

New Member Beiträge: 16 Beitrittsdatum: 20.09.08 Neueste Beiträge
I am trying to use Liferay's Portal Instances feature. For this I did the following -
1. Installed Liferay 6.0.l
2. Removed 7cogs hook plugin and data
3. Logged into liferay control panel
4. created 2 new instances - minshuu.com and tingendab.com with same virtual hosts

Now when I try to access either of the URLs it opens the same page.

Can anyone point me to some document to how to set up Portal Instances?

I am planning to setup Liferay ASP.
Babu Janarthanan, geändert vor 13 Jahren.

RE: Portal instances

Regular Member Beiträge: 128 Beitrittsdatum: 31.07.08 Neueste Beiträge
Hi,
take a look @ This url.

hope it helps you.

Thx,
Babu
thumbnail
Rohit Rai, geändert vor 13 Jahren.

RE: Portal instances

New Member Beiträge: 16 Beitrittsdatum: 20.09.08 Neueste Beiträge
I have been through that(http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Virtual+Hosting+(Communities)) link and also http://www.liferay.com/community/wiki/-/wiki/Main/Virtual+Hosting+(ASP)

For the link u suggest, I can create multiple communities only while my requirement is to create cohosted multiple portal instances. The second link is on that lines but I realized that the document is out dated and points to 4.3

If I am not wrong the Portal Instances configuration feature was introduced in 5.1
thumbnail
Rohit Rai, geändert vor 13 Jahren.

RE: Portal instances

New Member Beiträge: 16 Beitrittsdatum: 20.09.08 Neueste Beiträge
I have went through the Administrator's guide and bought a few Liferay books too! Didn't get anything useful.

I have tried various things, everything from creating virtual hosts on the host, in fron ting apache server . . . linking the virtual host URL to a community etc. I am not able to get it work, neither able to find a document that will help me out here.

Can anyone please point me in the right direction. Even a brief, to the point step by step will be a big help!

If there is no good documentation available yet, I'll be willing to pay someone to help me setup this liferay server with multiple portal instances ASP type and along the way document the procedure. I don't have a big budget for this cause I am trying to set this up to avoid setting up multiple servers to host a few domains of my own and a couple for friends and family!

Message or mail me to rohit at tingendab dot com if you can't discuss in the open.

Thanks in advance.
thumbnail
Tomas Polesovsky, geändert vor 13 Jahren.

RE: Portal instances (Antwort)

Liferay Master Beiträge: 676 Beitrittsdatum: 13.02.09 Neueste Beiträge
Hello Rohit,

I've found your call for help message on twitter emoticon


It is quite easy, there is mistake in your configuration:

4. created 2 new instances - minshuu.com and tingendab.com with same virtual hosts


Each instance must have different virtual host.

I've attached few images:
* 1.png - I've created alpha.com and beta.com portal instances with virtual hosts alpha.cz and beta.cz
* 2.png - I've updated my /etc/hosts file so as these domains belongs to my local instance of the Liferay portal
* 3.png - I can access http://alpha.cz:8080/ (user test@alpha.cz, pass test), which displays the portal instance alpha.com
* 4.png - I can access http://beta.cz:8080/ (user test@beta.cz, pass test), which displays the portal instance beta.com

Hope it helps.

-- tom
thumbnail
Rohit Rai, geändert vor 13 Jahren.

RE: Portal instances (Antwort)

New Member Beiträge: 16 Beitrittsdatum: 20.09.08 Neueste Beiträge
I've found your call for help message on twitter emoticon



Thanks for finding me! Was getting desperate. Have to admit, I was trying out other alternative to using Liferay.



It is quite easy, there is mistake in your configuration:

4. created 2 new instances - minshuu.com and tingendab.com with same virtual hosts


Each instance must have different virtual host.




Forgive the way I presented it, but I was doing exactly what you have said. I am pointing the 2 instances to their respective virtual hosts.



I've attached few images:
* 1.png - I've created alpha.com and beta.com portal instances with virtual hosts alpha.cz and beta.cz
* 2.png - I've updated my /etc/hosts file so as these domains belongs to my local instance of the Liferay portal
* 3.png - I can access http://alpha.cz:8080/ (user test@alpha.cz, pass test), which displays the portal instance alpha.com
* 4.png - I can access http://beta.cz:8080/ (user test@beta.cz, pass test), which displays the portal instance beta.com

Hope it helps.




That really was very helpful Tom! Found the problem, I was creating the instances for domain minshuu.com and tingendab.com, but was trying to access www.minshuu.com or www.tingendab.com and was redirected to the default liferay domain emoticon

I know it was my fault, but I have a question about this functionality. Shouldn't trying to access a subdomain redirect to the parent domain like www.tingendab.com -> tingendab.com rather than to the default instance for liferay(localhost)?

Is there some setting for this or should we file an RFE?

Doesn't everyone agree that this makes sense?

And thanks again to Tom, for helping me out here!
thumbnail
Rohit Rai, geändert vor 13 Jahren.

RE: Portal instances

New Member Beiträge: 16 Beitrittsdatum: 20.09.08 Neueste Beiträge
Created an issue in issue tracker - http://issues.liferay.com/browse/LPS-9494
thumbnail
Noodles Aaronson, geändert vor 12 Jahren.

RE: Portal instances

New Member Beiträge: 3 Beitrittsdatum: 29.08.10 Neueste Beiträge
first of all sorry for my poor English.
i have same problem.
i want to have 30 portal instances.
for testing portal instances in liferay 5, i decide create 2 portal instance localdomain1 and localdomain2.
first of all i define these in portal instance like these:

web id : localdomain1.com
virtual host: www.localdomain1.com
mail domain: localdomain1.com
i do this for localdomain2.

after that i change hosts file like this:
127.0.0.1 localhost
127.0.0.1 www.localdomain1.com
127.0.0.1 www.localdomain2.com

then i restart tomcat.
but my portal in http://www.localdomain1.com:8080 don't run.

i don't do anything further.
is there anythings wrong?

if i must do anything further please tell me

please help me
thumbnail
Tomas Polesovsky, geändert vor 12 Jahren.

RE: Portal instances

Liferay Master Beiträge: 676 Beitrittsdatum: 13.02.09 Neueste Beiträge
Hello Noodles

Can you access your portal from http://127.0.0.1:8080 ?

-- tom
thumbnail
Wen Ching Chua, geändert vor 12 Jahren.

RE: Portal instances

Junior Member Beiträge: 72 Beitrittsdatum: 18.04.11 Neueste Beiträge
Hi everyone,

Can I have subdomains as virtual hosts instead?

say portal.domain1.com to access Liferay internet portal instance 1 and intranet.domain2.com to access Liferay intranet instance 2?

Is that possible? Any help?

Thanks.
thumbnail
Tomas Polesovsky, geändert vor 12 Jahren.

RE: Portal instances

Liferay Master Beiträge: 676 Beitrittsdatum: 13.02.09 Neueste Beiträge
Hi Wen,

yes it should work with no problem.

-- tom
thumbnail
Wen Ching Chua, geändert vor 12 Jahren.

RE: Portal instances

Junior Member Beiträge: 72 Beitrittsdatum: 18.04.11 Neueste Beiträge
Tomas Polesovsky:
Hi Wen,

yes it should work with no problem.

-- tom


Thanks Tom emoticon
thumbnail
Olaf Kock, geändert vor 9 Jahren.

Thread Split

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
(separating a new unrelated question from the old thread with last post in 2011)

The new thread can be found at https://www.liferay.com/community/forums/-/message_boards/view_message/50287628.
thumbnail
Shivam Aggarwal, geändert vor 8 Jahren.

RE: Portal instances

Regular Member Beiträge: 122 Beitrittsdatum: 18.01.12 Neueste Beiträge
Hi Tomas

The solution worked for me too.
Thanks!