Page 1 of 1

Other Apache URL for Nagios

Posted: Fri May 17, 2024 3:03 am
by Hans van Leeuwen
Our system Gamma1 runs with Ubuntu 20.04.6, Nagios Core 4.5.2 and Apache 2.4.41-4ubuntu3.17
The URL to access the Nagios portal, that we use now, is http://gamma1.ourcomp.nl/nagios
We want to be able to reach Nagios with the URL http://nagios.gamma1.ourcomp.nl

How can I change the configuration of Nagios and Apache to make that possible?

Re: Other Apache URL for Nagios

Posted: Fri May 17, 2024 1:26 pm
by bbahn
Hello @Hans van Leeuwen,

You can change this by updating your apache configuration files. I believe on Ubuntu that the configuration files should be in /etc/apache2/conf-available.

In the file, there is a directory defined <Directory "/usr/local/nagios/share">, for which an Alias has been defined Alias /nagios "/usr/local/nagios/share".

You can either add an additional line

Code: Select all

Alias / "/usr/local/nagios/share"
or modifying the /nagios alias to be /.