Error with Apache, Nagios and Snorby integration

Posted by user1428366 on Server Fault See other posts from Server Fault or by user1428366
Published on 2013-10-29T20:49:53Z Indexed on 2013/10/29 21:58 UTC
Read the original article Hit count: 555

Filed under:
|
|

I'm trying to use apache to serve two different websites (Nagios and Snorby). The problem is that when I try to see the "/snorby" website, apache sends me the "It works" page. If I try to access to "/nagios" it works perfectly. Snorby is running under ruby passenger .This are the config files.

<VirtualHost *:80>
    ScriptAlias /nagios/cgi-bin "/srv/nagios/sbin"
    <Directory "/srv/nagios/sbin">
    #  SSLRequireSSL
       Options ExecCGI
       AllowOverride None
       Order allow,deny
       Allow from all
    #  Order deny,allow
    #  Deny from all
    #  Allow from 127.0.0.1
       AuthName "Nagios Access"
       AuthType Basic
       AuthUserFile /srv/nagios/etc/htpasswd.users
       Require valid-user
    </Directory>

    Alias /nagios "/srv/nagios/share"

    <Directory "/srv/nagios/share">
    #  SSLRequireSSL
       Options None
       AllowOverride None
       Order allow,deny
       Allow from all
    #  Order deny,allow
    #  Deny from all
    #  Allow from 127.0.0.1
       AuthName "Nagios Access"
       AuthType Basic
       AuthUserFile /srv/nagios/etc/htpasswd.users
       Require valid-user
    </Directory>
</VirtualHost>

And the other one is this:

<VirtualHost *:80>
    #Alias /snorby "/var/www/snorby-2.6.0/public"
    # !!! Be sure to point DocumentRoot to 'public'!
    DocumentRoot /var/www/snorby-2.6.0/public
    <Directory /var/www/snorby-2.6.0/public>
        # This relaxes Apache security settings.
        AllowOverride all
        # MultiViews must be turned off.
        Options -MultiViews
    </Directory>
</VirtualHost>

If I disable the Nagios webpage, the Snorby webpage works. I think the problem is Snorby because when I try to access to the Ip address with Nagios page disable, the webapplication redirects me to http:// myserverip/dashboard.

Can anyone help me please?

Thank you so much! Regards

© Server Fault or respective owner

Related posts about apache2

Related posts about configuration