tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yuval Perlov <yu...@r-u-on.com>
Subject Re: Apache/mod_jk serves random files from tomcat
Date Thu, 19 Feb 2009 10:34:44 GMT
Just the swapping responses has me concerned.

Thank you so much for the rest of your responses we will put them to  
good use once we give up on AJP completely.

Yuval

On Feb 18, 2009, at 8:45 PM, Christopher Schultz wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yuval,

On 2/17/2009 1:48 PM, Yuval Perlov wrote:
> Is APR part of tomcat or apache [httpd]?

APR is the Apache Portable Runtime. Technically, it's its own beast and
is used by both httpd and Tomcat (optionally).

> If I am running on linux and have no
> .so files in my tomcat directory does that mean I have no APR  
> installed?

The Tomcat directory isn't the only place .so files could be located.
Anywhere in the java.library.path is possible.

If you have an AprLifecycleListener configured in your server.xml, then
you are attempting to use APR. If you get a message in catalina.out on
startup that says something like "APR Configured" or "APR library not
found" then you have your answer.

> On a more positive note, we switched to proxy_http (after making the
> necessary code changes) and everything works now - no more mixed  
> content.
>
> Of course we lost a lot of necessary functionality:
> 1. request.isSecure() doesn't work

You can always use https :)

> 2. we don't know the server name we are hit with (since it is "hard
> coded" in httpd.conf)

This should be an option in mod_proxy. Is it not? ProxyPreserveHost?

> 3. we have no access to the source IP (for geo location)

Why not use mod_headers to convert the original IP address into an
X-Original-IP header. Better yet, use the X-Forwarded-For header that
should be set by default by mod_proxy.

> BTW - Am I the only one that is seriously worried that this kind of
> problem can even exist on a platform of this maturity?

Which problem? The "swapping-responses" problem or everything else
you've outlined about your inadequate configuration?

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

iEYEARECAAYFAkmcV0AACgkQ9CaO5/Lv0PBw4wCgtvTgf5Jy6z30u9Z3z/8M9ViN
stwAn1urDcjts1xtPvSMiSuL00jEMYPV
=/Ge+
-----END PGP SIGNATURE-----

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




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


Mime
View raw message