我在正和APACHE和TOMCAT时,出现错误,清指教谢谢!在线等待
1. 下载mod_jk2-2.0.43.dll(地址:http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.1/bin/win32/mod_jk2-2.0.43.dll),并将它复制到APACHE安装目录下的modules子目录下。
2. 编辑APACHE2的配置文件httpd.conf,在文件的最后加上以下几行。
LoadModule jk2_module modules/mod_jk2-2.0.43.dll
<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/jakarta-tomcat-4.1.12/webapps"
ServerName dummy-host.example.com
DirectoryIndex index.htm index.html index.jsp
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
其中DocumentRoot一行要与自己的TOMCAT安装目录一致。
DirectoryIndex一行是为了自动解释JSP类型的文件。
3. 在APACHE2安装目录的conf子目录下加入文件workers2.properties,其内容如下:
[shm]
file=${serverRoot}/logs/shm.file
size=1048576
# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
# Uri mapping
[uri:/*.jsp]
worker=ajp13:localhost:8009
问题:[uri:/*.jsp]是不是应该改为:[uri:/*]
这种配置是不是只能浏览TOMCAT的项目,而进不了APACHE的网站路径?
问题点数:0、回复次数:0Top




