Hello people of pound's mailing,
Today, my maze is the following thing:
I now have several websites being redirected on some internal servers, using
backends.
There's some special ones that need to be redirected on servers with paths at
the end.
I understood the backend address cannot contain any path at the end of the
hostname/IP, so I use the 'Redirect' directive to get my server.
The problem is that, as it name says, redirect directly on the specified host I
give.
For example :
Service
HeadRequire "Host: .*site1.cla.ch.*"
Redirect "http://192.168.1.13/my%20web/"
End
This particular configuration will give the user on the internet to see
"http://192.168.1.13/my%web" in the
browser address field, which is not "correct", because then, the links are not
working anymore. (192.168.1.13 is off course unreachable from outside.)
The man page says the "RewriteLocation" directive is already 1 by default (I
was looking that direction, dunno it it's the good directive to play with..)
So final question is ...
Is there a way to "preserve the hostname" when doing redirections?
Tips, links are more than very welcome :-)
Thanks in advance,
Guillaume
[...]
|