I've always used something akin to: ProxyRequests Off
ProxyPass / http://host.servprise.office/ <Location /> ProxyPassReverse / </Location> I think this would be cleaner for you than using rewrite rules to your servlet container. Then again, I've never used a rewrite rule to proxy, so I may just be talking out of my butt. -- Kevin On 4/11/08 5:57 AM, "Michael Gerzabek" <[EMAIL PROTECTED]> wrote: > I use mod_proxy successfully since 8 years. In the old days I had > troubles over troubles with mod_jk and since I learned how to use > mod_proxy and mod_rewrite I did never re-evaluate mod_jk. > > Ok, here my conf (it's local, not on the internet). This configuration > is inspired by an old thread (2003 or so) on cocoon-dev [1]: > > <VirtualHost *:81> > > ServerAdmin [EMAIL PROTECTED] > > DocumentRoot "C:/Dokumente und > Einstellungen/indi/workspace/michaelgerzabek.com" > > <Directory "C:/Dokumente und > Einstellungen/indi/workspace/michaelgerzabek.com"> > Options -Indexes -MultiViews > AllowOverride None > Order allow,deny > Allow from all > </Directory> > > ####################################################################### > # ERROR PAGES CONFIGURATION # > ####################################################################### > > ErrorDocument 502 /error/502.html > ErrorDocument 404 /error/404.html > ErrorDocument 500 /error/500.html > > ####################################################################### > # MOD_PROXY CONFIGURATIONS # > ####################################################################### > > # Make sure that if the servlet container specifies a "Location" HTTP > # header during redirection starting with "http://localhost:8080/", we > # can handle it and return to our client the effective (not real) > # location we want to redirect them to. This is _essential_ to handle > # also the error returned by the backend servlet container. > ProxyPassReverse / http://localhost:8888/ > > # Make sure that the virtual host name is passed through to the > # backend servlet container for virtual host support. > ProxyPreserveHost On > > # Tell mod_mod proxy that it should not send back the body-content of > # error pages, but be fascist and use its local error pages if the > # remote HTTP stack is sending an HTTP 4xx or 5xx status code. > ProxyErrorOverride On > > ####################################################################### > # MOD_REWRITE CONFIGURATIONS # > ####################################################################### > > # The nastiness begins, let's fire up the "rewrite engine" > RewriteEngine On > > # forbidden resources > #---------------------------------------------------------------------- > # Everything that starts with a NON-CASE-SENSITIVE match (the NC flag) > # of "/WEB-INF" or "/WEB-INF/" is forbidden (the F flag). And again, > # this is the last rule (the L flag), nothing will be processed by the > # rewrite engine if this rule is matched > RewriteRule "^/WEB-INF/(.*)" "$0" [L,F,NC] > > # static resources > #---------------------------------------------------------------------- > RewriteRule "^/$" "/index.html" [R=permanent] > RewriteRule "^(.*)\.html" "$0" [L] > RewriteRule "^(.*)\.css" "$0" [L] > RewriteRule "^(.*)\.png" "$0" [L] > > # All T5 apps have no .html, so we serve those from the > # servlet container > # ......................................................... > RewriteRule "^/(.*)" "http://localhost:8888/$0" [L,P] > > </VirtualHost> > > [1] http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104441321803644&w=2 > > Michael > > > Robin Helgelin schrieb: >> On Fri, Apr 11, 2008 at 10:49 AM, Michael Gerzabek >> <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> I want to install T5 behind a httpd with mod_proxy and mod_rewrite. While >>> the configuration on http is straight forward, T5 seems to behave different >>> when it get's queried by httpd. >>> >> >> Would you mind posting your httpd configuration? Also, wouldn't you >> rather run mod_jk instead of mod_proxy? >> >> > > --------------------------------------------------------------------- > 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]