高分求救:关于APACHE1.3.26+TOMCAT4.0.1+WIN2000 A SERVER
我安装了
j2sdk1.4.0 c:\j2sdk1.4.0--------可以运行
TOMCAT c:\tomcat----------单独可以运行,断口:8080
APACHE c:\apache group---------单独可以运行 80
mod_jk.
在APACHE/CONF/HTTPD.CONF的最后加了
LoadModule jk_module libexec/mod_jk.dll
AddModule mod_jk.c
JkWorkersFile "c:\tomcat\conf\workers.properties"
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
workers.properties从tomcat 3.2中copy 修改了tomcat_home & java_home 具体如下
....
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
workers.tomcat_home=c:\tomcat
#
# workers.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
workers.java_home=c:\j2sdk1.4.0
......
mod_jk.dll copy 到 apache/libexec 目录下。
在tomcat server.xml中修改了如下部分
...
<!-- Define an AJP 1.3 Connector on port 8009 -->
<!--
<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75"
acceptCount="10" debug="0"/>
-->
....
去掉了<!-- -->
以上是我的全部配置。
重启动机器。
运行 apache/htdocs/index.jsp 却出错。
-----index.jsp---
<html>
<%
out.println("success");
%>
</html>
错误提示:
Apache Tomcat/4.0.1 - HTTP Status 404 - /index.jsp
--------------------------------------------------------------------------type Status report
message /index.jsp
description The requested resource (/index.jsp) is not available.
--------------------------------------------------------------------------
这是什么问题,
还有一个随便问一下。
如果整合成功后如何在运行自己建立的文件夹。如在tomcat 中可以运行的 d:/test
http://localhost:8080/test/
整合后要如何设置可以运行
http://localhost/test/
或 http://虚拟主机/test/