[LUNI] mod_proxy overriding mod_rewrite
sten
lists at redboy.cx
Wed Nov 22 14:03:49 CST 2006
On Wed, 22 Nov 2006 9:55:23 -0600, sten <lists at redboy.cx> wrote:
>
> I'm playing stupid apache tricks with my home web services.
after some more playing, I found a setup that works (as far as I've tested so far):
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ http://server/home/ [R=301,L]
RewriteCond %{REQUEST_URI} ^/mail$
RewriteRule ^(.*)$ https://server$1 [R=301,L]
ProxyPass /home http://vpnclient/sten
<Location /home>
ProxyPassReverse http://vpnclient/sten
SetOutputFilter proxy-html
ProxyHTMLExtended On
ProxyHTMLURLMap /sten /home
RequestHeader unset Accept-Encoding
</Location>
any other suggestions, I'd love to hear them.
Sten
More information about the luni
mailing list