[Zope] Virtual Host Monster generates a monsterous URL!

Ed Leafe ed at leafe.com
Fri Feb 27 16:29:27 EST 2004


On Feb 27, 2004, at 3:04 PM, Patrick Kirk wrote:

> <VirtualHost 64.5.48.153>
>   ServerName  www.enterprise-hr.com
>   DocumentRoot /websites/enterpri/zope
>   RewriteEngine on
>   RewriteRule ^/(.*)
> http://64.5.48.153:8081/VirtualHostBase/http/enterprise-hr.com:80/www/ 
> VirtualHostRoot/$1
> </VirtualHost>
>
> The VHM documentation is kinda dense so does anyone see why I'm  
> getting the huge URLs?

	Try adding " [NC, L, P]" (without quotes) at the end of the rewrite  
rule (after the "/$1". The "P" part of that treats it like a proxy, so  
that you shouldn't see the big honking URL in the browser.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://opentech.leafe.com




More information about the Zope mailing list