Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Guido Magnini
Liferay behind Apache Http Server
June 15, 2012 2:48 AM
Answer

Guido Magnini

Rank: New Member

Posts: 3

Join Date: June 15, 2012

Recent Posts

Hi,

I'm configuring an Liferay 6.1 on jboss 5.1.
Now it's working with a custom context "/portal", so the application reply to http://locahost:8080/portal

Now I add a Apache Server, and this apache have to proxy the application with a prefix, so the address to call is:
http://localhost/prefix/portal

The apache have to trim the "prefix" and to call the application with the address http://locahost:8080/portal. This is working.
The problem is that the application have to callback all resource, link, etc. with the prefix, so I modify the portal.ctx as:
portal.ctx=/prefix/portal

Now I have those error:
[PortalImpl:4873] Current URL /portal/ generates exception: null
[PortalImpl:4873] Current URL /portal/image/company_logo?img_id=0&t=1339752121017 generates exception: null
[PortalImpl:4873] Current URL /portal/combo/?browserId=ie&minifierType=&languageId=en_US&b=6100&t=1325853680000&p=/prefix/portal/html/js&m=/aui/widget-base/assets/skins/sam/widget-base.css generates exception: null
[PortalImpl:4873] Current URL /portal/combo/?browserId=ie&minifierType=&languageId=en_US&b=6100&t=1325853680000&p=/prefix/portal/html/js&m=/aui/event-base-ie/event-base-ie-min.js&m=/aui/dom-style-ie/dom-style-ie-min.js&m=/aui/aui-event/aui-event-delegate-change-min.js&m=/aui/widget-base-ie/widget-base-ie-min.js generates exception: null

Can someone help with this?

Thanks
Linus Sphinx
RE: Liferay behind Apache Http Server
June 19, 2012 11:21 AM
Answer

Linus Sphinx

Rank: Junior Member

Posts: 84

Join Date: August 12, 2010

Recent Posts

Use AJP protocol instead of HTTP, dump the port 8080 and http://localhost/portal should work fine, what that word prefix is doing in your URL is the part confusing me, looks like you configured it to use /prefix/portal and then browse /portal without it so path unknown. If you need to re-write URL's no problem, there is another Apache module just for that.