Page 1 of 1

How to change default url from /nagios3 to / ?

Posted: Thu Dec 12, 2013 12:39 pm
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.

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

Posted: Thu Dec 12, 2013 2:54 pm
by abrist
This will require changing the apache vhost configuration. Can you post your server's /etc/httpd/conf.d/nagios.conf vhost file?

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

Posted: Fri Dec 13, 2013 4:40 am
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>

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

Posted: Fri Dec 13, 2013 8:59 am
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!

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

Posted: Fri Dec 13, 2013 10:18 am
by slansing
Alright, well we will close the thread for now, let us know when you are ready to resume!