Need help configuring SSL with Nagios XI
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need help configuring SSL with Nagios XI
Can you attach your nagiosxi.comf file
Thanks
Thanks
Re: Need help configuring SSL with Nagios XI
File is attached.
Re: Need help configuring SSL with Nagios XI
Sorry here it is. Just rename file to .conf. Thanks.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need help configuring SSL with Nagios XI
Lets replace the commented out section with the following:
Code: Select all
<VirtualHost *:443>
<Directory "/usr/local/nagiosxi/html">
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 XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
</VirtualHost>
Re: Need help configuring SSL with Nagios XI
What about the portion below the commented out section? Do I leave that there?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need help configuring SSL with Nagios XI
After making the chage, httpd failed to start. Below is the current nagiosxi.conf and the httpd log.
nagiosxi.conf
<VirtualHost *:443>
<Directory "/usr/local/nagiosxi/html">
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 XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory "/usr/local/nagiosxi/html">
AllowOverride All
</Directory>
</VirtualHost>
Alias /nagiosxi "/usr/local/nagiosxi/html"
Log:
[Fri May 25 08:49:21 2012] [notice] caught SIGTERM, shutting down
[Fri May 25 08:49:22 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 25 08:49:22 2012] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf.d/nagiosxi.conf:1)
nagiosxi.conf
<VirtualHost *:443>
<Directory "/usr/local/nagiosxi/html">
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 XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
<Directory "/usr/local/nagiosxi/html">
AllowOverride All
</Directory>
</VirtualHost>
Alias /nagiosxi "/usr/local/nagiosxi/html"
Log:
[Fri May 25 08:49:21 2012] [notice] caught SIGTERM, shutting down
[Fri May 25 08:49:22 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri May 25 08:49:22 2012] [error] Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] (/etc/httpd/conf.d/nagiosxi.conf:1)
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need help configuring SSL with Nagios XI
I'm sorry the section at the top should be
I accidentally left :443 in there and it should be :80<VirtualHost *:80>
<Directory "/usr/local/nagiosxi/html">
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 XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
</Directory>
</VirtualHost>
Re: Need help configuring SSL with Nagios XI
Ok that worked - httpd started.
However, when I access nagiosxi via http, I get the the "Welcome" page (attached) where it has a broken NagiosXI image. Then when I click on "Acess Nagios XI", I get the "Forbidden" page.
Is there a way to bypass the "Welcome" page when a user tries to access Nagiosxi and have redirected straight to the "Forbidden" page.
Thank you.
However, when I access nagiosxi via http, I get the the "Welcome" page (attached) where it has a broken NagiosXI image. Then when I click on "Acess Nagios XI", I get the "Forbidden" page.
Is there a way to bypass the "Welcome" page when a user tries to access Nagiosxi and have redirected straight to the "Forbidden" page.
Thank you.
You do not have the required permissions to view the files attached to this post.
Re: Need help configuring SSL with Nagios XI
When you navigate to: Admin->System Config->Mange System Config, what do you see in the "Program URL" field? I guess you have: "https://<IP_address>" but you should have "https://<IP_address>/nagiosxi/" instead. You should modify this field and hit the "Update Settings" button.
Hope this helps.
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!