Tomcat工作人员不工作

时间:2016-04-10 14:23:51

标签: apache tomcat

这是在CentOS 7系统上,apache 2.4.6,java jdk1.8.0_77,tomcat 7

http://www.example.com:8080/manager/html显示运行tomcat应用程序管理器和my_application。

httpd.conf包括:

IncludeOptional conf.d/*.conf

在conf.d文件夹中,文件gau.conf包含:

LoadModule jk_module modules/mod_jk.so
LoadModule proxy_ajp_module /usr/lib64/httpd/modules/mod_proxy_ajp.so
JkWorkersFile /etc/httpd/conf/workers.properties
JkShmFile     /var/log/httpd/mod_jk.shm
JkLogFile     /var/log/httpd/mod_jk_log
JkLogLevel    info
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
RewriteEngine On
RewriteRule   ^/servlet.gupld(.*)$ /path_to_detect/servlet.gupld [PT,QSA,L]
JkMount /path_to_detect worker1
JkMount /path_to_detect/* worker1

workers.properties文件是:

worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1

server.xml包含:

    <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" address="0.0.0.0" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

可以在tomcat端口访问js文件:

http://www.example.com:8080/path_to_detect/file.js

我希望在80端口上访问此文件(但由tomcat提供):

http://www.example.com/path_to_detect/file.js

但显示404 Not Found错误。

java -version:

java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

nmap -6 :: 1 -p 8009:

Starting Nmap 6.40 ( http://nmap.org ) at 2016-04-10 14:20 UTC
Nmap scan report for localhost.localdomain (::1)
Host is up (-1100s latency).
PORT     STATE SERVICE
8009/tcp open  ajp13

日志文件未显示任何错误。

请帮忙。

0 个答案:

没有答案