Hallo Leute
Ich habe ein Problem mit dem mod_jk modul, welches den Apachen mit Tomcat verbindet. Habe eine SLES10+geronimo 1.1 aufgestzt. Tomcat ist da schon dabei
Meine httpd.conf habe ich um folgenes ergänzt.
### apache_connector.conf ###
LoadModule jk_module /usr/lib/apache2/mod_jk.so
JkLogFile /var/log/apache2/mod_jk.log
JkWorkersFile /etc/apache2/conf.d/workers.properties
# Set the jk log level [debug/error/info]
#JkLogLevel debug
#JkLogLevel trace
JKLogLevel debug
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkAutoAlias /srv/www/geronimo/webapps
# Automatically Alias webapp context directories into the Apache document space.
JkMount /console/* ajp13
# Sets a mount point from a context to a Tomcat worker. In this case will allow access (forward the request) to the console.
rker.c (136)
Meine workers.properties sieht so aus.
workers.java_home=/usr/bin/java
# Sets the JAVA_HOME
ps=/
# For Windows systems use back slash "\" , for Unix systems use forward slash "/"
worker.ajp13.port=8009
# Use default 8009 for Apache Tomcat
# Change this value to 8019 for Jetty
worker.ajp13.host=localhost
# Specifies the location of the Geronimo server. Use default localhost for single-tier scenarios. Specify the hostname of the Geronimo server for multi-tier environments.
worker.ajp13.type=ajp13
# Sets the version of AJP used. The AJP listeners defined in Geronimo are AJP v13.
Wenn ich jetzt den Apachen neu starte und auf die Seite
http://ipadresse/console/ surfe, sollte das ja den selben effekt haben, als
wenn ich auf
http://ipadresse:8080/console surfe. Der mod_jk sollte ja die
Anfrage richtig an tomcat weiterleiten. Leider bekomme ich nur
Zugriff verweigert!
Der Zugriff auf das angeforderte Objekt ist nicht möglich. Entweder kann es vom Server nicht gelesen werden oder es ist zugriffsgeschützt.
Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den Webmaster hierüber.
Error 403
In meinem mod_jk.log steht folgendes
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/console'
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Mar 22 01:29:12 2007] [mod_jk.c (2332)]: mod_jk::jk_translate, check alias_dir: /srv/www/geronimo/webapps
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/console'
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/HTTP_FORBIDDEN.html.var'
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/include/top.html'
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/include/bottom.html'
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (486)]: Into jk_uri_worker_map_t::map_uri_to_worker
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (500)]: Attempting to map URI '/error/contact.html.var'
[Thu Mar 22 01:29:12 2007] [jk_uri_worker_map.c (618)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match
Kennt jemand eine Lösung.
LG
Richard