I normally access nagios at mysite.com/nagios3/ but how do I change that?

In the /etc/nagios3/apache2.conf file there are these (and other) variables:

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

I changed them to this:

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

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

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

Then I can access nagios at mysite.com/test - however the images are not loading as they are still being referenced at /nagios3/images/...

link|improve this question

feedback

1 Answer

up vote 5 down vote accepted

Edit the /etc/nagios3/cgi.cfg and set:

url_html_path=/test
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.