You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Lancashire, Pete" <PL...@columbia.com> on 2002/08/12 22:28:40 UTC
Need help mod_rewrite and mod_proxy :(
Where I'm having a problem is in doing a reverse URL conversion,
forward is just fine.
What I'm trying to do is have a Apache 1.3.24 (eventually 2.x)
server act only as a proxy. Getting forward to work has
been easy, but getting the reverse to be hidden is not
being much fun.
the URLs I'm trying to proxy are:
The host that is acting as the proxy is called outside and
the host I'm trying to hide is inside
Forward
<http://outside/images> -> <http://inside/>
and
<http://outside/images/> -> <http://inside/>
this works, and thanks to the list on how to get this to
work without a trialing slash.
but no matter what I do I can not get the correct reverse
translation to work
<http://inside/you-name-it to become <http://outside/images/you-name-it
I'm stuck at
-------------------------------------------------------------
RewriteRule ^/images/*(.+) http://inside/$1 [P]
ProxyPass /images/ <http://inside/>
ProxyPassReverse /images/ <http://inside/>
ProxyPassReverse /images/ <http://inside.hidden.xyz/>
--------------------------------------------------------------
The "real" url that one get with going to http://outside/images is ...
http://inside.hidden.xyz/servlet/foo.bar.servlet.login.LoginServlet?acti
on=1
Thank in advance ...
-pete
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org