Windows下Apache+Tomcat+jsp+php的服务器整合配置出现Service Unavailable错误
0
Windows下Apache+Tomcat+jsp+php的服务器整合配置出现Service Unavailable错误
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Please try again later.
1.JDK (安装目录 L:/Java)
2.Apache2.4 (安装目录 J:/Apache24)
3.tomcat 8.0.17 (安装目录L:\service\tomcat8)
4.tomcat-connectors-1.2.39-windows-i386-httpd-2.4.x
5.PHP
网站根目录:J:\PHPWeb
系统环境Win7
由于80端口被IIS占用,Apache用8082端口,tomcat用8080端口
按照这里提供的说明
http://www.cnblogs.com/zyw-205520/p/3603262.html
配置完成以后,tomcat 能单独使用,能访问jsp页面;
apache也能单独使用,能访问html,php页面;
但是却不能通过Apache转到tomcat访问JSP页面,出现错误404,
找不到该文件。
我是这样操作的:建立项目test,test文件夹下有一个test1.html,test2.jsp两个
文件,将test文件夹一份放到L:\service\tomcat8\webapps下
另外copy一份放到网站根目录:J:\PHPWeb下。
浏览器上能访问
http://localhost:8082/test1/test1.html
http://localhost:8080/test1/test2.jsp
http://localhost:8080/test1/test1.html
但是
http://localhost:8082/test1/test2.jsp
却出现错误:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Please try again later.
请问这是什么原因?如何处理?
以下是一些关键配置文件部分内容:
1、Apache的配置文件httpd.conf
Listen 8082
LoadModule jk_module "J:/Apache24/modules/mod_jk.so"
JkLogFile "L:/service/tomcat8/logs/mod_jk2.log"
JkWorkersFile "L:/ConnApaTom/workers.properties"
DocumentRoot J:/PHPWeb
DirectoryIndex index.html index.htm index.jsp index.action
JkMount /*WEB-INF ajp13
JkMount /*j_spring_security_check ajp13
JkMount /*.action ajp13
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /*.action ajp13
2、L:/ConnApaTom/workers.properties文件内容为
workers.tomcat_home="L:/service/tomcat8"
workers.java_home="L:/Java"
ps=/
worker.list= ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
3、tomcat的server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Please try again later.
1.JDK (安装目录 L:/Java)
2.Apache2.4 (安装目录 J:/Apache24)
3.tomcat 8.0.17 (安装目录L:\service\tomcat8)
4.tomcat-connectors-1.2.39-windows-i386-httpd-2.4.x
5.PHP
网站根目录:J:\PHPWeb
系统环境Win7
由于80端口被IIS占用,Apache用8082端口,tomcat用8080端口
按照这里提供的说明
http://www.cnblogs.com/zyw-205520/p/3603262.html
配置完成以后,tomcat 能单独使用,能访问jsp页面;
apache也能单独使用,能访问html,php页面;
但是却不能通过Apache转到tomcat访问JSP页面,出现错误404,
找不到该文件。
我是这样操作的:建立项目test,test文件夹下有一个test1.html,test2.jsp两个
文件,将test文件夹一份放到L:\service\tomcat8\webapps下
另外copy一份放到网站根目录:J:\PHPWeb下。
浏览器上能访问
http://localhost:8082/test1/test1.html
http://localhost:8080/test1/test2.jsp
http://localhost:8080/test1/test1.html
但是
http://localhost:8082/test1/test2.jsp
却出现错误:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems.
Please try again later.
请问这是什么原因?如何处理?
以下是一些关键配置文件部分内容:
1、Apache的配置文件httpd.conf
Listen 8082
LoadModule jk_module "J:/Apache24/modules/mod_jk.so"
JkLogFile "L:/service/tomcat8/logs/mod_jk2.log"
JkWorkersFile "L:/ConnApaTom/workers.properties"
DocumentRoot J:/PHPWeb
DirectoryIndex index.html index.htm index.jsp index.action
JkMount /*WEB-INF ajp13
JkMount /*j_spring_security_check ajp13
JkMount /*.action ajp13
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /*.action ajp13
2、L:/ConnApaTom/workers.properties文件内容为
workers.tomcat_home="L:/service/tomcat8"
workers.java_home="L:/Java"
ps=/
worker.list= ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
3、tomcat的server.xml
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />