tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxime Colas des Francs" <max_...@hotmail.com>
Subject Unix file socket / mod_jk2
Date Fri, 13 Sep 2002 17:29:08 GMT
Hi

I'm on Linux (RH 7.3) with jsdk 1.4

I attempt to use Tomcat 4, Apache 2 and mod_jk2 with a unix socket file for communication.

Tomcat is launched as root, and creates the socket file : 
srw-rw----    1 root     root            0 sep 13 13:17 jk2.socket

Apache 2 is launched as nobody and can't read/write in this file 
(works with after a chmod 777 on jk2.socket)

what is the best (secure) solution ?

launch tomcat with nobody ?
how ?

thks.
(vous pouvez repondre en francais/english)

workers2.properties :
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example unixsocket channel.
[channel.un:unixsocket]
file=/usr/local/tomcat/work/jk2.socket
# define the worker
[ajp13:unixsocket]
channel=channel.un:unixsocket
# Uri mapping
[uri:/regis/*]
worker=ajp13:unixsocket

jk2.properties :
# list of needed handlers.
handler.list=apr,channelUnix,request
# Set the default port for the channelSocket
#channelSocket.port=8009
# Location of the socket.
channelUnix.file=${jkHome}/work/jk2.socket
# Dynamic library
apr.NativeSo=${jkHome}/lib/libjkjni.so




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message