Page 2 of 2

Re: Nagios Core web interface with SSL support on Ubuntu

Posted: Mon Mar 18, 2019 3:55 pm
by ssax
Please send me your ports.conf if you have it:

Code: Select all

find / -name ports.conf

Re: Nagios Core web interface with SSL support on Ubuntu

Posted: Mon Mar 18, 2019 4:09 pm
by ssax
Does this make it work? Please post the output as well:

Code: Select all

sudo a2enmod ssl
sudo systemctl restart apache2

Re: Nagios Core web interface with SSL support on Ubuntu

Posted: Mon Mar 18, 2019 5:21 pm
by xlin125
On March 12, I posted the port.conf file. Let me post it here again:

cat /etc/apache2/ports.conf
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 80 443

<IfModule ssl_module>
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

I also enabled the ssl (see the apache2-Files.tar.gz) and then restarted apache2 (as root):
a2enmod ssl
/etc/init.d/apache2 restart

However, the connection to the port 443 still got refused (even locally tried to connect to the loop backup IP 127.0.0.1 and the IP address that Apache2 URL is accessed).

Re: Nagios Core web interface with SSL support on Ubuntu

Posted: Tue Mar 19, 2019 4:14 am
by melidonis
Do you get "Connected to 127.0.0.1" if you try

Code: Select all

telnet 127.0.0.1 443
You can also try

Code: Select all

openssl s_client -connect 127.0.0.1:443

Re: Nagios Core web interface with SSL support on Ubuntu

Posted: Tue Mar 19, 2019 2:01 pm
by ssax
Ok, let's look at all the files, please run this command and send me the

Code: Select all

/tmp/HTTPFILES2.zip
file so that I can import them into my lab:

Code: Select all

zip -r /tmp/HTTPDFILES2.zip /etc/apache2/