Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Restrict cross site access from single domain
Hi Team,
I am using liferay DXP 7.0 sp4. I have to handle multiple sites in a single portal instance. For e.g. I have multiple sites name as :
Name : Site1, Friendly URL : /site1
Name : Site2, Friendly URL : /site2
Name : Site3, Friendly URL : /site3
And I have 3 domains of each :
https://www.site1.com
https://www.site2.com
https://www.site3.com
Is there any such feature or property in Liferay to restrict cross site access for e.g. :
https://www.site1.com/web/site2or https://www.site1.com/web/site3
Or the only approach available is through Web Server.
Thanks & Regards,
Raja Seth
Raja Seth:Is there any such feature or property in Liferay to restrict cross site access
Not to my knowledge. If you want /web/siteFriendlyURL
URLs to not work once virtual hosting was enabled, you'd need to
either put the sites on different portal instances (different
companyId values, so that the lookup would fail), or
you'd need to write a servlet filter to deny access.
Minhchau Dang:Raja Seth:Is there any such feature or property in Liferay to restrict cross site access
Not to my knowledge. If you want
/web/siteFriendlyURLURLs to not work once virtual hosting was enabled, you'd need to either put the sites on different portal instances (differentcompanyIdvalues, so that the lookup would fail), or you'd need to write a servlet filter to deny access.
Hi Minhchau,
Thanks for your reply. But in this scenario, users are at postal instance level and each portal instance will be having different set of users. I want users to be common.
Thanks & Regards,
Raja Seth