Foren
Liferay behind reverse proxy
Henrik Geijstedt, geändert vor 13 Jahren.
Liferay behind reverse proxy
New Member Beitrag: 1 Beitrittsdatum: 02.10.10 Neueste Beiträge
Hi!
I'm new to Liferay and i'm trying to make it work behind a reverse proxy.
I'm using version Liferay 5.3.2 and has pretty much the same set up as Helmut Denk desribes in this thread: http://www.liferay.com/community/forums/-/message_boards/message/79981?_19_redirect=%2fcommunity%2fforums%2f-%2fmessage_boards%2fsearch%3f_19_redirect%3d%252Fweb%252Fguest%252Fcommunity%252Fforums%26_19_breadcrumbsCategoryId%3d0%26_19_searchCategoryId%3d0%26_19_keywords%3dreverse%2bproxy
My reverse proxy is an apache that uses this configuration:
My main problem seems to be that Liferay needs to run at the context root "/", especially most javascript links are not relative. I tried to change the property portal.ctx to /secure/liferay/ in my portal-ext.properties file, but that only worked for html-links, not for some of the redirects Liferay makes.
So for example when I'm on this page:
externalproxy.mydomain.com/secure/liferay/somepage
...I sometimes get redirected to:
externalproxy.mydomain.com/c/somepage (which, of course is not working..)
Is there any way around this problem, or do I have to rewrite all url's starting with /c, /html etc?
I'm new to Liferay and i'm trying to make it work behind a reverse proxy.
I'm using version Liferay 5.3.2 and has pretty much the same set up as Helmut Denk desribes in this thread: http://www.liferay.com/community/forums/-/message_boards/message/79981?_19_redirect=%2fcommunity%2fforums%2f-%2fmessage_boards%2fsearch%3f_19_redirect%3d%252Fweb%252Fguest%252Fcommunity%252Fforums%26_19_breadcrumbsCategoryId%3d0%26_19_searchCategoryId%3d0%26_19_keywords%3dreverse%2bproxy
My reverse proxy is an apache that uses this configuration:
ProxyPass /secure/liferay http://internal-ip/liferay
ProxyPassReverse /secure/liferay http://internal-ip/liferay
My main problem seems to be that Liferay needs to run at the context root "/", especially most javascript links are not relative. I tried to change the property portal.ctx to /secure/liferay/ in my portal-ext.properties file, but that only worked for html-links, not for some of the redirects Liferay makes.
So for example when I'm on this page:
externalproxy.mydomain.com/secure/liferay/somepage
...I sometimes get redirected to:
externalproxy.mydomain.com/c/somepage (which, of course is not working..)
Is there any way around this problem, or do I have to rewrite all url's starting with /c, /html etc?