Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Can not get mod_jk.so version 1.2.6 to work |
|
Author |
|
krka01
Joined: 02 Jun 2006 Posts: 14 Location: Stockholm, Sweden
|
Posted: Mon 04 Feb '08 16:59 Post subject: Can not get mod_jk.so version 1.2.6 to work |
|
|
Hi,
I use Apache 2.2.8 with Tomcat 6.0.14 and with mod_jk.so version 1.2.5 everthing worked, but if i install mod_jk.so version 1.2.6 i can not get it to work.
I use the mod_jk binaries supplied by the Apache foundation.
If i enter an URL that is supposed to be passed to Tomcat thru the mod_jk, for example, https://myserver/application/, i get this in the apache error_log:
Code: | client denied by server configuration: D:/www/Apache2/htdocs/application |
There is nothing in the mod_jk.log
My workers.properties:
Code: | workers.tomcat_home=D:\www\Tomcat6
workers.java_home=D:\Java\jre1.6.0_04
ps=\
# Define worker 'worker1'
worker.list=worker1
# Set properties for worker 'worker1' (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.connection_pool_timeout=600
worker.worker1.socket_keepalive=1 |
The mod_jk directives in my http.conf:
Code: |
LoadModule jk_module modules/mod_jk.so
<IfModule mod_jk.c>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
<Location /*/WEB-INF/*>
AllowOverride None
deny from all
</Location>
JkMount /application/* worker1
JkMount /web/* worker1
JKMount /dokument/* worker1
</IfModule> |
This work if i have the mod_jk.so version 1.2.5
Is there anybody that experience the same problem as i am, or have an solution for this.
Many thanks
Krister |
|
Back to top |
|
krka01
Joined: 02 Jun 2006 Posts: 14 Location: Stockholm, Sweden
|
Posted: Tue 05 Feb '08 13:21 Post subject: |
|
|
I have just solved my problem, it turned out that they have changed the behaviour of mod_jk with version 1.2.6.
In an virtual host environmet, JkMount/JkUnMount/JkMountfile are not longer inherited between virtual hosts or from the global server.
So if you use virtual host, as i do, you have to define all relevant JkMount/JkUnMount/JkMountfile in the virtual host or if you still want to define them globally, use the "JkMountCopy On" inside the virtual host or , if you have sevral virtual hosts, add the "JkMountCopy all" to the global server.
Krister |
|
Back to top |
|
|
|
|
|
|