Carsten Gaebler
2003-06-16 16:14:34 UTC
Hi there,
the book "Linux Server Hacks" by Rob Flickenger contains an example on
how to use environment variables with the ProxyPassReverse directive. Of
course it doesn't work because it's not implemented. :-) But since it's
very useful for the proxy I'm maintaining and would also strip down this
ugly reverse mapping list in the URL Rewriting Guide, I wrote a patch
for Apache 1.3.27.
Basically it allows you to setup something like this:
RewriteRule ^/(.*)/ http://$1/ [P,E=WHERETO:$1]
ProxyPassReverse /%{ENV:WHERETO}/ http://%{ENV:WHERETO}/
The logical consequence would be for ProxyPass to support that, too. But
since this directive is handled in a different file and I don't know a
centralized place to put the expand_vars() function, I didn't do that.
Feel free to send comments.
Regards
Carsten.
the book "Linux Server Hacks" by Rob Flickenger contains an example on
how to use environment variables with the ProxyPassReverse directive. Of
course it doesn't work because it's not implemented. :-) But since it's
very useful for the proxy I'm maintaining and would also strip down this
ugly reverse mapping list in the URL Rewriting Guide, I wrote a patch
for Apache 1.3.27.
Basically it allows you to setup something like this:
RewriteRule ^/(.*)/ http://$1/ [P,E=WHERETO:$1]
ProxyPassReverse /%{ENV:WHERETO}/ http://%{ENV:WHERETO}/
The logical consequence would be for ProxyPass to support that, too. But
since this directive is handled in a different file and I don't know a
centralized place to put the expand_vars() function, I didn't do that.
Feel free to send comments.
Regards
Carsten.