Re: Re: Re: [users@httpd] mod_rewrite question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thanks a lot Vincent, I will try this on Monday.

> On 7/21/06, Vincent Bray <noodlet@xxxxxxxxx> wrote:
>> On 7/21/06, Vincent Blondel <vincent@xxxxxxxxxxxx> 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: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux