Archived community.zenoss.org | full text search
Skip navigation
81070 Views 7 Replies Latest reply: Jun 21, 2011 11:37 PM by syafu RSS
aliashraf Rank: White Belt 42 posts since
Apr 7, 2009
Currently Being Moderated

May 11, 2009 1:19 AM

How to run Zenoss on Https.

hai,

i am using zenoss 2.3.3 virtual appliance.Is there any way by i can run the Zenoss on https, do any body have any patch , or any simple technique.pls explain in detail, because i am new to linux.


A help would be appreciated.


Thank you.
  • back2backkiller Rank: White Belt 8 posts since
    Sep 24, 2009
    Currently Being Moderated
    3. Oct 5, 2009 1:10 AM (in response to aliashraf)
    Re: RE: How to run Zenoss on Https.

    Hi

     

    This page is not present now, kindly give a fresh link.

     

    Regards

  • sjacobs Rank: White Belt 63 posts since
    Aug 26, 2009
    Currently Being Moderated
    4. Oct 5, 2009 5:06 AM (in response to aliashraf)
    Re: How to run Zenoss on Https.

    Hey

     

    Make sure you have all the needed apache modules like mod proxy and mod redirect

     

    Create a vhost that has the following config

     

    <VirtualHost *:443>
            ServerName <hostname>:443
            ServerAdmin <email>
            SSLCertificateFile /etc/apache2/zenoss-ssl/server.crt
            SSLCertificateKeyFile /etc/apache2/zenoss-ssl/server.key
             CustomLog     /var/log/apache2/zenoss-acces.log combined
             ErrorLog      /var/log/apache2/zenoss-error.log
             RewriteEngine On
             RewriteRule ^/(.*) http://<hostname>:8080/VirtualHostBase/https/<hostname>:443/VirtualHostRoot/$1 [L,P]
    </VirtualHost>

     

    Restart apache.

     

    It's also usfull to change the zenactions module (this can be done via the GUI - Settings - Deamons - zenaction and change the zopurl to match the https address. If not the url in the mails will be incorrect.

  • shuckins ZenossEmployee 42 posts since
    Jul 30, 2009
    Currently Being Moderated
    5. Oct 6, 2009 11:25 AM (in response to back2backkiller)
    Re: RE: How to run Zenoss on Https.
    New location of the Zenoss SSL HowTo is here.
  • salawank Rank: White Belt 10 posts since
    Oct 1, 2009
    Currently Being Moderated
    6. Oct 12, 2009 11:30 PM (in response to aliashraf)
    Re: How to run Zenoss on Https.

    Hi,

     

    i use stunnel as provided below..

     

    mirokoi boyd at tarrant-tech.com
    Mon Jun  2 09:23:30 EDT 2008
    For those like me who want to keep it simple.

    Caveats:

    Ubuntu 8.04
    reference install of ZenOSS using the stack
    keep your Apaches/Proxies/Compilers to yourself, kthx
    Internet Exploder no likey use Firefox

    Away we go...

    sudo bash

    apt-get install openssl stunnel

    cd /etc/stunnel

    openssl req -new -x509 -days 3650 -nodes -out stunnel.pem -keyout stunnel.pem

    chmod 600 ./stunnel.pem

    nano /etc/stunnel/stunnel.conf -->

    cert = /etc/stunnel/stunnel.pem

    [https]
    accept  = 443
    connect = 8080
    TIMEOUTclose = 0

    Save/Close

    nano /etc/default/stunnel4 -->

    ENABLED=1

    Save/Close

    /etc/init.d/stunnel4 restart

    su zenoss

    cd /usr/local/zenoss/zenoss/etc

    nano ./zope.conf -->

    <cgi-environment>
        HTTPS ON
    </cgi-environment>

    Save/Close

    zopectl restart

    Go have a beer - your new and only ZenOSS URL is https://yourserver


    p/s.. i would say this probably gonna work with other distros also...

  • syafu Newbie 1 posts since
    Jun 21, 2011
    Currently Being Moderated
    7. Jun 21, 2011 11:37 PM (in response to aliashraf)
    Re: How to run Zenoss on Https.

    Hi All,

     

    Appreciate your help regarding zenoss https using apache2.


    Below is apache2 configuration for https:

     

    <VirtualHost *:443>

    ...

    ...

    RewriteEngine On
    RewriteLog /var/log/apache2/rewrite.log
    RewriteLogLevel 3
    RewriteRule ^/zport(.*) http://%{SERVER_NAME}:8080/VirtualHostBase/https/%{SERVER_NAME}:443/VirtualHostRoot/zport/$1 [L,P]

    </VirtualHost>

     

    FYI, I redirect all http request to https. Below is the configuration to redirect http to https:

     

    <VirtualHost *:80>

    ...

    ...

    RewriteEngine On

    RewriteCond %{SERVER_PORT} ^80$

    RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [L,R]

    </VirtualHost>

     

     

    I access zenoss through https://{SERVER_NAME}/zport

    Everything seem fine until I find out that Event Console does not show the list of event.

     

     

    Need help on how to fix this? or any trick to make it work?

     

     

    Information:

    Zenoss 2.5.2 (using zenoss-stack_2.5.2_x64.deb installer)

    Ubuntu 10.04.2

     

     

    Thanks in advance.

     

     

    Regards,

    syafu

More Like This

  • Retrieving data ...