当前位置: 技术问答>java相关
整合apache1.3.26+tomcat4.1.2的问题……这是怎么了???
来源: 互联网 发布时间:2015-11-20
本文导语: 我已经配置好了apache和tomcat, apache+php我已经运行好多天了。 tomcat刚安装完毕,standalone模式正常使用。 可是按照网上的设置方法设置完毕, 在浏览http://127.0.0.1/test.jsp的时候,出现: Internal Server Error The server enc...
我已经配置好了apache和tomcat,
apache+php我已经运行好多天了。
tomcat刚安装完毕,standalone模式正常使用。
可是按照网上的设置方法设置完毕,
在浏览http://127.0.0.1/test.jsp的时候,出现:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
这是怎么啦???
apache+php我已经运行好多天了。
tomcat刚安装完毕,standalone模式正常使用。
可是按照网上的设置方法设置完毕,
在浏览http://127.0.0.1/test.jsp的时候,出现:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
这是怎么啦???
|
下载mod_jk.dll 放到apache的安装目录的modules目录下
修改apache的httpd.conf文件,在最后面加上:
# Using mod_jk.dll to redirect dynamic calls to Tomcat
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "g:/tomcat413/conf/workers.properties"
JkLogFile "g:/tomcat413/logs/mod_jk.log"
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
在tomcat的目录下的conf下面建立一个文件,文件名:workers.properties
文件内容如下:
workers.tomcat_home=g:tomcat413
workers.java_home=g:jdk13103
ps=
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
注意不同版本的apache的mod_jk.dll是不一样的
修改apache的httpd.conf文件,在最后面加上:
# Using mod_jk.dll to redirect dynamic calls to Tomcat
LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "g:/tomcat413/conf/workers.properties"
JkLogFile "g:/tomcat413/logs/mod_jk.log"
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
在tomcat的目录下的conf下面建立一个文件,文件名:workers.properties
文件内容如下:
workers.tomcat_home=g:tomcat413
workers.java_home=g:jdk13103
ps=
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
注意不同版本的apache的mod_jk.dll是不一样的