Archived community.zenoss.org | full text search
Skip navigation
6570 Views 2 Replies Latest reply: Feb 22, 2010 12:33 PM by RyanBLynch RSS
bougie Newbie 4 posts since
Aug 3, 2007
Currently Being Moderated

Aug 3, 2007 2:32 PM

Zenoss with Apache (SSL) and alternative root

Hi All,

We would like to access Zenoss over SSL using Apache. The howto works correctly ( http://www.zenoss.com/community/docs/howtos/setup-zenoss-with-apache/ ), but our setup is slightly different. We serve other applications over SSL on the same host, so we would like to redirect everything under "zenoss" rather than our entire SSL VirtualHost.

To accomplish this, we've tried modifying the RewriteRule's as follows:
------
RewriteRule ^/zenoss$ http://assets.lepp.cornell.edu:8080/VirtualHostBase/https/assets.lepp.cornell.edu:443/VirtualHostRoot/_vh_zenoss [L,P]
RewriteRule ^/zenoss/(.*) http://assets.lepp.cornell.edu:8080/VirtualHostBase/https/assets.lepp.cornell.edu:443/VirtualHostRoot/_vh_zenoss/$1 [L,P]
------

However, this doesn't quite work. When we try to browse to https://assets.lepp.cornell.edu/zenoss , we are redirected to https://assets.lepp.cornell.edu/zport/dmd/ , which obviously isn't right.

Has anyone else gotten a similar configuration to work? Any suggestions or help would be greatly appreciated.

Many thanks,
Devin
  • RyanBLynch Rank: White Belt 11 posts since
    Aug 24, 2009
    Currently Being Moderated
    2. Feb 22, 2010 12:33 PM (in response to bougie)
    Re: RE: Zenoss with Apache (SSL) and alternative root

    This might be too late to do you any good, but the problem is in Zenoss's page templates. A lot of the URLs are hard-coded into the page templates with static paths, rooted on '/zport/...'. Zope's virtual hosting support can only handle URLs that it dynamically generates, so the hard-coded URLs in the templates don't reflect the alternative root. Some of the URLs are correctly handled (e.g., the user preferences link in the top right-hand menu), but most aren't--including some JS and image URLs, which pretty much breaks the whole UI.  I opened a Trac ticket about this, here:   * http://dev.zenoss.org/trac/ticket/6209  I'm hoping to patch my local Zenoss installations, and if it works, I'll post the patch. But I can't guarantee when I'll have the time to work on it, so you might want to look at handling it, yourself. It looks like most of the page templates (*.pt files) are located in the directory $ZENHOME/Products/ZenModel/skins/zenmodel/, but there may be more. I grepped that dir, alone, and it looks like there are about 100 URLs, spread throughout the templates, that need to be changed. The Trac ticket has some examples of how to make dynamic links, and the Zope docs have more info, if you search them for 'ZPT' (Zope Page Templating).

More Like This

  • Retrieving data ...

Incoming Links