Foros de discusión

Different protocol for various portal instances on single server

thumbnail
Marco Beelen (iPROFS), modificado hace 10 años.

Different protocol for various portal instances on single server

New Member Mensajes: 4 Fecha de incorporación: 26/09/12 Mensajes recientes
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, modificado hace 8 años.

RE: Different protocol for various portal instances on single server

Expert Mensajes: 416 Fecha de incorporación: 15/05/07 Mensajes recientes
Hey Marco

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

Regards!