我的系统是FC4我用系统自带的httpd并安装了httpd-devel和mod_jk等模块后配安装JDK和TOMCAT(apache-tomcat-5.5.12.tar.gz)
JDK( jdk-1_5_0_05)
httpd(2.0.54)
配置文件如下:
httpd.conf
...
<VirtualHost 192.168.168.188:80>
ServerName 192.168.168.188
ServerAlias 192.168.168.188
DocumentRoot /var/www/192.168.168.188/
DirectoryIndex index.htm index.html index.php index.phtml index.jsp
ErrorLog /var/log/httpd/192.168.168.188_access_log
<Location ~ "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
<Location ~ "/*/WEB-INF/*">
JkUriSet worker ajp13:localhost:8009
</Location>
<Location ~ "/servlets-examples/*">
JkUriSet worker ajp13:localhost:8009
</Location>
</VirtualHost>
server.xml
<Host name="192.168.168.188" debug=0 appBase="/var/www/192.168.168.188/"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Alias>192.168.168.188</Alias>
<Context path="" docBase="." debug=0 reloadable="true"/>
<Logger className="org.apache.Catalina.logger.FileLogger"
directory="logs" prefix="192.168.168.188_log." suffix=".txt"
timestamp="true"/>
</Host>
在重启httpd -k restart时出现
[root@uihe bin]# /usr/sbin/httpd -k restart
Syntax error on line 980 of /etc/httpd/conf/httpd.conf:
Invalid command 'JkUriSet', perhaps mis-spelled or defined by a module not included in the server configuration
请问这里什么原因。谢谢 |