留言板

Different protocol for various portal instances on single server

thumbnail
Marco Beelen (iPROFS),修改在10 年前。

Different protocol for various portal instances on single server

New Member 帖子: 4 加入日期: 12-9-26 最近的帖子
Hello,

We are going to use Liferay as the platform for one of our customers.
For this customer we are going to host both a public website as well as a corporate intranet on the same server.

The public website should be running on HTTP, while the corporate intranet needs to be running on HTTPS.
We do have a Apache Proxy server in front of our Tomcat server, which handles the SSL encoding.

Normally we would use the following properties to configure Liferay to be running behind the web-server.


web.server.http.port=80
web.server.https.port=443
web.server.protocol=https

But these are platform setting, which are used to generate all portalUrl the same way, which causes problems in one site or the other.
Is there some way to run HTTP and HTTPS sites next to each other on a single Liferay Server?

We already tried to use company-specific portal.properties with multiple portal instances, but that doesn't work.

With kind regards,
Marco Beelen

If there are no solutions available, then we are likely to implement a custom extension on the PortalImpl to make the switch between HTTP and HTTPS dependend on some custom properies setting.
thumbnail
Aritz Galdos,修改在8 年前。

RE: Different protocol for various portal instances on single server

Expert 帖子: 416 加入日期: 07-5-15 最近的帖子
Hey Marco

We are facing the same requirement here! Did you succeed with your custom implementation? Did you find a propper solution?

Regards!