I hate mod_jk. I use mod_rewrite in combination with either
mod_proxy_ajp (requires Apache 2.2.x) or mod_proxy_http (if I'm stuck
with 2.0.x or below). Apache 2.2 has a load balancer module as well if
that's what you currently need mod_jk for (as well).
Here's the proxy config template I use for Appfuse-based applications:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/j_security_check [OR]
RewriteCond %{REQUEST_URI} ^/.*\.jsp [OR]
RewriteCond %{REQUEST_URI} ^/.*\.html
RewriteRule ^/(.*) ajp://localhost:8009/$1 [P]
ProxyPassReverse / ajp://localhost:8009/
I use a wrapper Ant script to break things apart physically between
Apache and Tomcat (i.e. the WAR file that's deployed doesn't contain
anything that's served up by Apache). The wrapper calls build-war on
the Appfuse build, explodes the war file, deploys everything static to
Apache, and re-wars the application, excluding whatever it sent to
Apache.
HTH
R.
On 3/16/07, rfisk <[EMAIL PROTECTED]> wrote:
I am having trouble integrating apache and mod_jk with my appfuse app.
The goal is to have multiple appfuse apps hosted as virtual hosts with the
context hidden from the end user.
I am able to get mod_jk and apache configured such that the site will come
up properly. In order to do this, I also configure rewrite rules in apache
to hide the context.
However, I can never get the login/user authentication to work properly.
I have a JKMount for the worker on /j_security_check but the login.jsp
returns error="true" after login.
Has anyone had any luck with this? I've searched the web but with no luck in
finding a resolution.
--
View this message in context:
http://www.nabble.com/mod_jk-and-j_security_check-tf3414945s2369.html#a9516027
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]