Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Edgar Trania
direct port to 80
10 de enero de 2013 18:35
Respuesta

Edgar Trania

Ranking: Junior Member

Mensajes: 37

Fecha de incorporación: 13 de noviembre de 2010

Mensajes recientes

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 de enero de 2013 18:39
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11319

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

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 de enero de 2013 2:26
Respuesta

Edgar Trania

Ranking: Junior Member

Mensajes: 37

Fecha de incorporación: 13 de noviembre de 2010

Mensajes recientes

that is noted.. tnx so much for reply emoticon
Hitoshi Ozawa
RE: direct port to 80
11 de enero de 2013 4:07
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

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 de enero de 2013 6:03
Respuesta

Olaf Kock

LIFERAY STAFF

Ranking: Liferay Legend

Mensajes: 3474

Fecha de incorporación: 23 de septiembre de 2008

Mensajes recientes

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.