|
三.我自己的配置及重要参数说明(winxp+tomcat5.0.14+apache2.0.52): tomcat安装目录:F:/Tomcat,在webapps有一个应用项目yedongshu
apache安装目录:F:/Apache2052
我的workers2.properties:
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
#The socket channel
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
#define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Map the Tomcat examples webapp to the Web server uri space
[uri:/yedongdshu/WEB-INF/*]
[uri:/*.jsp]
info=Map the whole webapp
关于workers2.properties的说明:
[uri:/yedongdshu/WEB-INF/*]
[uri:/*.jsp]表示遇到javabean,servlet,jsp时,apache统一交给tomcat处理。
我的httpd.conf:
修改安装目录下的Apache2\conf\httpd.conf文件,
1.在LoadModule那一段代码中添加:
LoadModule jk2_module modules/mod_jk2.so
2.将AddDefaultCharset ISO-8859-1 改为 AddDefaultCharset GB2312 使Apache自动支持中文显示;
3.在“httpd.conf最后添加:(此段配置可以根据你的实际情况进行修改)
ServerAdmin yds@163.com
DocumentRoot “F:/Tomcat/webapps/yedongshu”
ServerName 212.20.36.215
ErrorLog logs/my-error_log
CustomLog logs/my-access_log common
4.如果你的主页是JSP页面,你还需要配置一项:
DirectoryIndex index.html index.html.var index.jsp
我的server.xml(F:/Tomcat/conf/server.xml):
在最后的前面加上一行: |
|
|