On Tue, Jun 12, 2001 at 10:50:13AM +1000, tomc@evetcia.com wrote:
I dont do exactly what you are looking for but I do do this:
RewriteEngine on RewriteRule ^/(.*) http://localhost:8080/zopefolder/$1?REAL_HOST=%{HTTP_HOST} [QSA,P] ProxyPass /misc_ http://localhost:8080/misc_ ProxyPass /p_ http://localhost:8080/p_
Thanks, I ended up with: DocumentRoot /var/www RewriteEngine On RewriteLog "/var/log/apache-ssl/rewrite_log" RewriteLogLevel 0 ProxyRequests on <Directory /var/www/dynamic> RewriteEngine On RewriteRule ^/var/www/dynamic/(.*) http://localhost:8080/$1?REMOTE_ADDR=%{RE MOTE_ADDR} [QSA,P] </Directory> There is a bit of magic involved in the Rule. First, http://same_host/ is automatically dropped, this caused some grief (but is ROTFM grief, i.e., my fault). Then Rule RewriteRule ^(.*) http://localhost:8080/$1?REMOTE_ADDR=%{REMOTE_ADDR} [QSA,P] worked on my test server, but had to be modified to the above on my production server. Haven't figured out why yet, but may never bother. Thanks. Jim