Re: [users@httpd] proxypass and redirect apache2

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

 



On 9/23/05, Heitmann, Herwarth <herwarth.heitmann@xxxxxxxxxxxxx> wrote:
> Hello,
>
> I want the following to be done for our new reverse proxy solution:
>
> http://www.800-900manager.nl needs to be rewritten to
> https://www.800-900manager.nl
>
> and when someone goes to https://www.800-900manager.nl it needs to be
> redirected to https://www.800-900manager.nl/nsapi/WebObjects/webfrc/
>
> of course https://www.800-900manager.nl needs to be proxied to
> http://10.120.16.80
>
> as i expect this my config. and this config is ignoring the redirect.

Well, your problem is not well specified, since you can't have exactly
the same URL both be redirected AND proxied in the same operation.

Perhaps what you want is something along the lines of
RewriteEngine On
RewriteRule ^/$ https://www.800-900manager.nl/nsapi/WebObjects/webfrc/ [R,L]
RewriteRule ^/(.+) http://10.120.16.80/ [P]
ProxyPassReverse / http://10.120.16.80/

which redirects the root URL and proxies everything else.

Joshua.

---------------------------------------------------------------------
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