構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Edgar Trania
direct port to 80
2013/01/10 18:35
答え

Edgar Trania

ランク: Junior Member

投稿: 29

参加年月日: 2010/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
David H Nebinger
RE: direct port to 80
2013/01/10 18:39
答え

David H Nebinger

ランク: Liferay Legend

投稿: 7157

参加年月日: 2006/09/01

最近の投稿

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.
Edgar Trania
RE: direct port to 80
2013/01/11 2:26
答え

Edgar Trania

ランク: Junior Member

投稿: 29

参加年月日: 2010/11/13

最近の投稿

that is noted.. tnx so much for reply emoticon
Hitoshi Ozawa
RE: direct port to 80
2013/01/11 4:07
答え

Hitoshi Ozawa

ランク: Liferay Legend

投稿: 7990

参加年月日: 2010/03/23

最近の投稿

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.
Olaf Kock
RE: direct port to 80
2013/01/11 6:03
答え

Olaf Kock

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1906

参加年月日: 2008/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.