掲示板

fronting liferay tomcat with webserver issue

9年前 に Jimit Shah によって更新されました。

fronting liferay tomcat with webserver issue

Junior Member 投稿: 62 参加年月日: 14/02/05 最新の投稿
Hi,
I have a web server in front of liferay's tomcat.
So when i hit my webserver(port 80), it redirects me to the liferay page.However the page's css is completely broken.

I have added the following in portal-ext.properties:
web.server.http.port=80
web.server.https.port=443

Please help me with this.
thumbnail
9年前 に David H Nebinger によって更新されました。

RE: fronting liferay tomcat with webserver issue

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
I'm guessing you didn't configure the web server to redirect all traffic to tomcat, not just jsps and what not.
9年前 に Jimit Shah によって更新されました。

RE: fronting liferay tomcat with webserver issue

Junior Member 投稿: 62 参加年月日: 14/02/05 最新の投稿
Hi David,
I am using proxypass as follows :
ProxyRequests on
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
It worked on my windows machine, where I am using Apache web server.
But with the same configuration on my AIX machine with IBM HTTPServer, it is not working.

And apart from the above problem, I have one more question.
When I add "web.server.http.port=80" in portal-ext.properties and I hit localhost:8080, that is actually when my liferay page's css dissappears. Why does this happen?
thumbnail
9年前 に Jack Bakker によって更新されました。

RE: fronting liferay tomcat with webserver issue

Liferay Master 投稿: 978 参加年月日: 10/01/03 最新の投稿
Jimit Shah:
Hi,
I have a web server in front of liferay's tomcat.
So when i hit my webserver(port 80), it redirects me to the liferay page.However the page's css is completely broken.

I have added the following in portal-ext.properties:
web.server.http.port=80
web.server.https.port=443


web server ? please be more specific, Apache, IIS, or ...?

if Apache, I recommend mod_jk to connect to Liferay ; then all requests will get passed along (tho you can config in Apache to not send specified requests along to Liferay)

The Police have a song called "Too Much Information". That is not applicable here.
9年前 に Jimit Shah によって更新されました。

RE: fronting liferay tomcat with webserver issue

Junior Member 投稿: 62 参加年月日: 14/02/05 最新の投稿
Jack Bakker:
Jimit Shah:
Hi,
I have a web server in front of liferay's tomcat.
So when i hit my webserver(port 80), it redirects me to the liferay page.However the page's css is completely broken.

I have added the following in portal-ext.properties:
web.server.http.port=80
web.server.https.port=443


web server ? please be more specific, Apache, IIS, or ...?

if Apache, I recommend mod_jk to connect to Liferay ; then all requests will get passed along (tho you can config in Apache to not send specified requests along to Liferay)

The Police have a song called "Too Much Information". That is not applicable here.


I am using IBM HTTPServer on AIX machine.
Could you please suggest me some link as well.

Thank you.
9年前 に Jimit Shah によって更新されました。

RE: fronting liferay tomcat with webserver issue

Junior Member 投稿: 62 参加年月日: 14/02/05 最新の投稿
Please some one help me with the issue...
As I previously said, I am using mod_proxy for redirection:

ProxyRequests on
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/

Also I am adding the following in portal-ext.properties:
web.server.http.port=80

However, when I hit web server's url, liferay's css and images disappears.
What am I doing wrong?
And if everything's wrong, please suggest me some link to follow.
9年前 に gordon daniels によって更新されました。

RE: fronting liferay tomcat with webserver issue

Liferay Master 投稿: 797 参加年月日: 08/08/24 最新の投稿
this worked for me a couple of years ago:

RewriteEngine On

<Directory />
Options FollowSymlinks
AllowOverride None
</Directory>

ProxyPass / ajp://localhost:9009/
ProxyPassReverse / ajp://localhost:9009/

I use mod_jk now.

If you want help, you need to read apache's docs on proxypass.