Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Edgar Trania
direct port to 80
January 10, 2013 6:35 PM
Answer

Edgar Trania

Rank: Junior Member

Posts: 30

Join Date: November 13, 2010

Recent Posts

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
January 10, 2013 6:39 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7470

Join Date: September 1, 2006

Recent Posts

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
January 11, 2013 2:26 AM
Answer

Edgar Trania

Rank: Junior Member

Posts: 30

Join Date: November 13, 2010

Recent Posts

that is noted.. tnx so much for reply emoticon
Hitoshi Ozawa
RE: direct port to 80
January 11, 2013 4:07 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

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
January 11, 2013 6:03 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2038

Join Date: September 23, 2008

Recent Posts

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.