我怎样才能改变我在浏览器中访问Nagios的path?

我通常在mysite.com/nagios3/上访问nagios,但是如何更改呢?

在/etc/nagios3/apache2.conf文件中有这些(和其他)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 

我改变了他们:

 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 

然后我可以通过mysite.com/test访问nagios – 但是图像没有加载,因为它们仍然在/ nagios3 / images /中被引用。

编辑/etc/nagios3/cgi.cfg并设置:

 url_html_path=/test