I'm trying to set up Zenoss to work with https://server/zenoss instead of https://server. Here's my rewrite rule:
RewriteEngine On
RewriteRule ^/zenoss($|/.*) http://localhost:8080/VirtualHostBase/https/server:443/VirtualHostRoot/zenoss$1 [L,P]
This way doesn't work. I get:
Site error
An error was encountered while publishing this resource. The requested resource does not exist. Please click here to return to the Zenoss dashboard
The url for "Please click here to return to the Zenoss dashboard" points to https://server/zport/dmd
However, it does work if I do it the standard Zenoss/Plone/Zope way:
RewriteEngine On
RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/https/server:443/VirtualHostRoot/$1 [L,P]
... it works great.
According to this article, it seems like the first way should work. I'm not really sure what I'm missing.
You've got an extra
zenoss
in your first RewriteRule (and you're also doubling up on slashes). It reads:It should be: