[DeleGate-En] Re: rewrite GET for "/" URLs
In message <_A4352@delegate-en.ML_> on 01/25/09(03:49:18)
you "jon.hart" <firstname.lastname@example.org> wrote:
|at the moment I use delegate as a reverse proxy for a database
|application. Dependent on the accessed name- based-virtual-host the user
|reach his database. The database is selected by a "?query" component.
|To accomplish this I have two mountpoints for a user like this:
|MOUNT="/ http://192.168.1.1/?db=user1 nvhost=user1.database.org"
|MOUNT="/* http://192.168.1.1/* nvhost=user1.database.org"
|What is the best approach to reduce the two mountpoints to one mountpoint?
I don't know why you need to reduce it so but it might be useful to add
"moved" option to the MOUNT for "/" to automatically redirect the request.
MOUNT="/ http://192.168.1.1/?db=user1 nvhost=user1.database.org,moved"
MOUNT="/* http://192.168.1.1/* nvhost=user1.database.org"
9 9 Yutaka Sato <email@example.com> http://delegate.org/y.sato/
( ~ ) National Institute of Advanced Industrial Science and Technology
_< >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller