How to change default url from /nagios3 to / ?

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.
Locked
michael_teter
Posts: 3
Joined: Thu Dec 12, 2013 12:34 pm

How to change default url from /nagios3 to / ?

Post by michael_teter »

Hi. Forgive me if this has been asked and answered before... my search on the forum didn't turn up useful results on this topic.

I have nagios3 installed on ubuntu 12.04, and I cannot figure out how to change the URL from http://myserver/nagios3 to http://myserver/ . This question has been asked and "answered" on some other places on the web, but none of the answers worked in my scenario.

Suggestions are welcome. Thanks in advance.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How to change default url from /nagios3 to / ?

Post by abrist »

This will require changing the apache vhost configuration. Can you post your server's /etc/httpd/conf.d/nagios.conf vhost file?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
michael_teter
Posts: 3
Joined: Thu Dec 12, 2013 12:34 pm

Re: How to change default url from /nagios3 to / ?

Post by michael_teter »

Hi. My config is the basic one provided by the Ubuntu Nagios3 package:

Code: Select all

# apache configuration for nagios 3.x

ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3

# Where the stylesheets (config files) reside
Alias /nagios3/stylesheets /etc/nagios3/stylesheets

# Where the HTML pages live
Alias /nagios3 /usr/share/nagios3/htdocs

<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
        Options FollowSymLinks

        DirectoryIndex index.php index.html

        AllowOverride AuthConfig
        Order Allow,Deny
        Allow From All

        AuthName "Nagios Access"
        AuthType Basic
        AuthUserFile /etc/nagios3/htpasswd.users
        require valid-user
</DirectoryMatch>

<Directory /usr/share/nagios3/htdocs>
        Options +ExecCGI
</Directory>
michael_teter
Posts: 3
Joined: Thu Dec 12, 2013 12:34 pm

Re: How to change default url from /nagios3 to / ?

Post by michael_teter »

Thanks for the suggestions.

However, due to other circumstances, this effort is being put on hold. Sorry to waste anyone's time!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: How to change default url from /nagios3 to / ?

Post by slansing »

Alright, well we will close the thread for now, let us know when you are ready to resume!
Locked