httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject Re: [users@httpd] convert from mod_jk to proxy_ajp
Date Thu, 01 Jan 2009 13:21:15 GMT
On Thu, Jan 1, 2009 at 7:47 AM, André Warnier <aw@ice-sa.com> wrote:
> RewriteCond %{REQUEST_URI} !/servlet\.[^\.]+$
> RewriteRule ^/xyz/(.*)$ /$1 [PT]
> <LocationMatch "/servlet\.[^.]+$">
>  ProxyPass ajp://localhost:8009
> </LocationMatch>

>File "/srv/www/star1/docs/xyz/" not found.

Are there any other rewrites that actually apply to the servlet and
don't use PT?  A matching RewriteRule w/o PT will prevent parts of
mod_proxy from running (where it tags a request as being for the
proxy, to be handled later)

My usual suggestion/simplification is to use rewrite with the P flag
whenever rewrite and proxy are required for the same context root.  I
believe in 2.0.x it was less predictable because the Proxy could
actually run first and prevent rewrite from happening at all.

If you're handy with a debugger, "proxy_trans" is the name of the
function that can be "covered up".

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message