tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Debugging tomcat<->apache(mod_jk) bridge
Date Wed, 02 Dec 2009 02:12:43 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

On 12/1/2009 10:26 AM, André Warnier wrote:
> groupalias v wrote:
>>
>> httpd.conf
>> -------------
>>
>> LoadModule jk_module          modules/mod_jk.so
>>
>> <IfModule jk_module>
> 
> What the h.. is this line for : ?

It's for conditional inclusion of Apache httpd directives when modules
may or may not be loaded. The test I have in my httpd.conf is:

<IfModule mod_jk.c>

I can't find any references online to the use of jk_module in
<IfModule>, so the OP might want to change it.

>> Alias /test/ "/srv/tomcat6/webapps/A"
> 
> It kind of contradicts these next lines :
> 
>>
>> JKMount        /test/ A
>> JkMount     /test/* A
> 
> Because of the Alias line, I don't think that mod_jk even gets to see
> your /test/ URLs.

No, mod_jk gets higher priority than mod_alias. I'm not entirely sure
how the pecking order is decided, but I do know that mod_jk gets first shot.

Here's a question for the OP: what URL are you trying to access?

A 400 error ("Bad Request") usually means that you made a request that
didn't map to a deployed webapp. Presumably, there is a webapp deployed
into the "/srv/tomcat6/webapps/A" directory. Are there any other webapps
deployed?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksVzRsACgkQ9CaO5/Lv0PDOyQCeP4l4nZXLLSBuU9uSgO8EScIy
a0sAoJWb02JuFuMINLYFzy3PoDll/rPD
=+VPI
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message