掲示板

Liferay implementation behind haproxy

11年前 に dsi admin によって更新されました。

Liferay implementation behind haproxy

New Member 投稿: 1 参加年月日: 12/06/07 最新の投稿
Hello,

We actually encounter difficulties with proxying Liferay in a particular manner.
The fact is that we can easily have something like:

mysite.com => Proxy haproxy => myserver:8080/mysite => no problem, everything works fine with mod_jk on the apache server

But in our case we need something like this:

mydomain.com/mysitename => Proxy haproxy => myserver:8080/mysitename

We also tried:
mydomain.com/mysitename => Proxy haproxy => myserver/mysitename (with mod_jk and apache rewrite rules)

The result is that we can join the root page redirecting to mydomain.com/mysitename/web/guest/ but all the CSS, images and other links have URLS like mydomain.com/web/guest/. So "/mysitename/" is gone!

The fact is that when we try directly myserver/mysitename, everything works fine. It seems that when we try to access it via haproxy, Liferay rewrites the links with the $http_host = mydomain.com instead of $http_host =mydomain.com/mysitename..what's going wrong? We did it with all kinf of CMS like TYPO3, SPIP, Joomla, Wordpress, and they all work with this method behind haproxy, but liferay doesn't. emoticon

Has anybody encountered this kind of problems?

Thanks for your help!

Our liferay version: 6.06, working with apache 2.2.16 and haproxy 1.4.8