[Zope] Zope VHM Rewrite Help

Heather Perkins c2814 at truman.edu
Mon Aug 30 16:19:33 EDT 2004


Hello everyone.  I am trying to rewrite the URL for my Plone Portal 
using the Zope Virtual Hosting Monster and Apache's RewriteEngine.  
However, I can't quite get the rewritten URL to work. 

My site is located at:  http://pyrite.truman.edu:8201/miller
My desired url is:  http://pyrite.truman.edu/millerj

My VirtualHost block in Apache's httpd.conf file looks like:
  <VirtualHost pyrite.truman.edu>
    ServerName pyrite.truman.edu
    RewriteEngine On
    # currently used RewriteRule (delete this when the Zope 
    # VHM rewrite rule is correctly configured)
    RewriteRule ^/millerj(.*)$ http://pyrite.truman.edu:8201/miller$1 
[L,P]
    # uncomment this RewriteRule when you figure out how to
    # anchor the site properly
    # RewriteRule ^/millerj(.*)$ 
http://pyrite.truman.edu:8201/miller/VirtualHostBase/http/pyrite.truman.edu:80/miller/VirtualHostRoot/millerj
  </VirtualHost>

Any help would be greatly appreciated.

Thanks,
Heather Coons



More information about the Zope mailing list