On 7/21/06, Vincent Bray <[EMAIL PROTECTED]> wrote:
On 7/21/06, Vincent Blondel <[EMAIL PROTECTED]> wrote:
> > I would like to forward traffic from (dmz) http://people.domain/~username
> > to (lan) http://username.srv.intranet.
> > I found such type of example to resolve this case but I do not know if
> > this is the right way to do it and I do not find any reverse mapping
> > (ProxyPassRevers) in this definition.
> >
> > ProxyRequests Off
> > RewriteEngine On
> > RewriteRule ^/~(.*) http://$1.srv.intranet [P]

ProxyRequests Off
RewriteRule ^/~([^/]+)/(.+) http://$1.srv.intranet/$1 [P]

.. that's a start. The trouble is there's no way currently to
dynamically set the host name for ProxyPassReverse so redirects may be
an issue. You may be able to mitigate this by using UseCanonicalName
Off on the backend server.

--
noodl


Oops!
Make that,
RewriteRule ^/~([^/]+)/(.+) http://$1.srv.intranet/$2 [P]

($2 at the end rather than $1).

--
noodl

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to