Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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/...

share|improve this question

1 Answer 1

up vote 5 down vote accepted

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

url_html_path=/test
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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