Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Edgar Trania
direct port to 80
10 gennaio 2013 18.35
Risposta

Edgar Trania

Punteggio: Junior Member

Messaggi: 37

Data di Iscrizione: 13 novembre 2010

Messaggi recenti

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
10 gennaio 2013 18.39
Risposta

David H Nebinger

Community Moderator

Punteggio: Liferay Legend

Messaggi: 11324

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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
11 gennaio 2013 2.26
Risposta

Edgar Trania

Punteggio: Junior Member

Messaggi: 37

Data di Iscrizione: 13 novembre 2010

Messaggi recenti

that is noted.. tnx so much for reply emoticon
Hitoshi Ozawa
RE: direct port to 80
11 gennaio 2013 4.07
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7949

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
11 gennaio 2013 6.03
Risposta

Olaf Kock

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 3474

Data di Iscrizione: 23 settembre 2008

Messaggi recenti

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.