Other Apache URL for Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
Hans van Leeuwen
Posts: 5
Joined: Mon Jan 04, 2016 7:27 am

Other Apache URL for Nagios

Post 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?
bbahn
Posts: 380
Joined: Thu Jan 12, 2023 5:42 pm

Re: Other Apache URL for Nagios

Post 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 /.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Post Reply