免责声明:不是服务器管理员
几个星期以来我一直在为这个问题摸不着头脑(并不总是介意你,因为那会让人发疯)。我一直在尝试将我的 apache2 服务器连接到我的 tomcat 服务器,如果有人在浏览我的 web 目录时遇到 *.jsp 或任何servlet,它就会被移交给 tomcat。
我两者Apache2.0 (port 9099)
都Tomcat6 (9089)
在同一个机器上运行在 Debian lenny 上。
目前,mod_jk
已启用mod_jk.conf
内容$apacheHOME/mods-enabled/
:
# Where to find workers.properties
JkWorkersFile /etc/apache2/workers.properties
# Where to put jk shared memory
JkShmFile /var/log/at_jk/mod_jk.shm
# Where to put jk logs
JkLogFile /var/log/at_jk/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# Send servlet for context …
Run Code Online (Sandbox Code Playgroud)