掲示板

direct port to 80

11年前 に Edgar Trania によって更新されました。

direct port to 80

Junior Member 投稿: 37 参加年月日: 10/11/13 最新の投稿
hi guys i know it would be bad design but what are the disadvantages if i direct(no apache httpd) use tomcat server port to 80
thumbnail
11年前 に David H Nebinger によって更新されました。

RE: direct port to 80

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
No first tier caching of static resources. No taking advantage of many of the modules Apache provides. Etc.

It's not that it's bad design per se. You can operate tomcat off of port 80, it's just that it's not tuned to serve static resources in the same way a standard httpd server is.
11年前 に Edgar Trania によって更新されました。

RE: direct port to 80

Junior Member 投稿: 37 参加年月日: 10/11/13 最新の投稿
that is noted.. tnx so much for reply emoticon
thumbnail
11年前 に Hitoshi Ozawa によって更新されました。

RE: direct port to 80

Liferay Legend 投稿: 7942 参加年月日: 10/03/24 最新の投稿
Many sites use up front httpd to route traffic to clustered backend liferay servers.

There's also may be some security risk with setting application server to run on port 80. Why don't you just let application server run on port 8080 and setup iptable to forward traffic from port 80.
thumbnail
11年前 に Olaf Kock によって更新されました。

RE: direct port to 80

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Agreed and preferred (in case you really want to go without Apache).

The easiest way to bind tomcat to port 80 on Unix-flavoured boxes is to run as root - that certainly is a bad idea, don't do that.

By the way, my favourite killerfeature for Apache httpd in front of tomcat even on small installations is mod_rewrite. Sometimes it's easy to bugfix/rewrite on the webserver level. Saved me lots of work when I didn't have time for a proper solution in the backend.