手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu6.06 server 整合 Apache和Tomcat

[日期:2008-07-24] 来源:Linux公社  作者:网络守夜人 Linux整理 [字体:大 中 小]

3.在apache主配置文件的末尾加上一下内容
# set workers.properties of mod_jk
JkWorkersFile /etc/apache2/workers.properties(workers.properties目录)

# Where to put jk logs
JkLogFile /var/log/apache2/mod_jk.log(jk日志)

# having the permissions to write the runtime status log
JkShmFile /var/log/apache2/jk-runtime-status

# Set the jk log level [debug/error/info]
JkLogLevel info

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"(日志生成格式)

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

# send servlet and jsp requests to tomcat with ajp13 protocol

JkMount /*.jsp worker1 【表示把所有后缀为jsp的文件都交给worker1(即tomcat)处理】

举一反三,别的后缀怎么配应该也知道了吧

重新启动apache,tomcat,至此整合初步结束,当然根据需要后续还有很多优化过程,慢慢来呦。

linux
相关资讯       Apache  Tomcat 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款