Normal users cannot open sockets on ports less than 1024. Apache
avoids this problem by starting as root, creating and binding a
socket in port 80 and then switching to another user ("nobody").
As the socket has already been bound by "root", "nobody" can
use it. Note the difference: "nobody" uses the socket, does not
bind it to port 80 (which only "root" can do).

What Tomcat cannot do is switch from "root" to "nobody". It either
starts as "root" or as "nobody", and stays with that user for all its
execution. If it starts as "root" it can create sockets in port <1024. 
If it starts as "nobody", it cannot, so it has to use port 8080 or similar.

Anyway, using mod_jk is quite easy, and there are lots of docs available
that explain how to connect Apache and Tomcat.

Hope now it is clear enough,

   Ion

-----Mensaje original-----
De: Tevfik Aytekin [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 30 de abril de 2002 15:10
Para: Tomcat Users List
Asunto: RE: port 80 !!?? Running !


Adrian, I do not understand your answer.
Is your tomcat running on port 80 with a user other then root?
If yes, please tell me how you achieve this.

Thanks.
TA.


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to