You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Raul Lapitzondo <ra...@gmail.com> on 2006/05/08 21:10:03 UTC
Problem with Tomcat 5
I ´ve problem when start Apache/2.0.49 in SuSE 9.1 and apache-tomcat-5.5.17.
================ start apache
===============================================================
linux # rcapache2 restart
linux # Invalid command 'JkUriSet', perhaps mis-spelled or defined by a
module not included in the server configuration
=========================================================================================
================= /etc/apache2/sysconfig.d/loadmodule.conf
========================================
# Files in this directory are created at apache start time by
/usr/sbin/rcapache2.
# Do not edit them!
#
# as listed in APACHE_MODULES (/etc/sysconfig/apache2)
...
LoadModule jk_module /usr/lib/apache2/mod_jk.so
=========================================================================================
============== /etc/apache2/vhosts.d/vhost.conf
==================================================
<VirtualHost *>
ServerName server.net
ServerAlias server.net
DocumentRoot /srv/www/htdocs/miserver
ServerAdmin webmaster@server.net
ErrorLog /var/log/apache2/error_log_server
CustomLog /var/log/apache2/access_log_server common
<Location "/*.jsp">
JkUriSet worker ajp13:localhost:8009
</Location>
</VirtualHost>
=========================================================================================
============ /etc/apache2/conf.d/jk.conf
========================================================
# Log level to be used by mod_jk
JkLogLevel error
# The following line makes apache aware of the location of
# the /servlets-examples context
Alias /servlets-examples "/opt/apache-tomcat-5.5.17
/webapps/servlets-examples"
<Directory "/opt/apache-tomcat-5.5.17/webapps/servlets-examples">
Options Indexes FollowSymLinks
allow from all
</Directory>
# The following line makes apache aware of the location of
# the /jsp-examples context
Alias /jsp-examples "/opt/apache-tomcat-5.5.17/webapps/jsp-examples"
<Directory "/opt/apache-tomcat-5.5.17/webapps/jsp-examples">
Options Indexes FollowSymLinks
allow from all
</Directory>
# The following line mounts all JSP files and the /servlet/ uri to
tomcat
JkMount /servlets-examples/servlet/* ajp13
JkMount /jsp-examples/*.jsp ajp13
# The following line prohibits users from directly accessing WEB-INF
<Location "/jsp-examples/WEB-INF/">
AllowOverride None
deny from all
</Location>
<Location "/servlets-examples/WEB-INF/">
AllowOverride None
deny from all
</Location>
</IfModule>
=========================================================================================
Any Idea ?
**
--
Best Regards
Raúl H. Lapitzondo