config.inc.php bug + patch

David Halik dhalik at jla.rutgers.edu
Wed Mar 4 23:06:41 CET 2009


In 3.1 I noticed that URL's in the sidebar were coming up with double 
slashes, i.e.:

https://192.168.140.188/nagios/cgi-bin//status.cgi?host=all&servicestatustypes=28

The problem is an extra trailing slash in html/config.inc.php which is 
unnecessary:

--- config.inc.php    2009-03-04 17:01:10.000000000 -0500
+++ config.inc.php.new    2009-03-04 17:01:01.000000000 -0500
@@ -4,7 +4,7 @@
 
 $cfg['cgi_config_file']='/etc/nagios/cgi.cfg';  // location of the CGI 
config file
 
-$cfg['cgi_base_url']='/nagios/cgi-bin/';
+$cfg['cgi_base_url']='/nagios/cgi-bin';
 
 
 // FILE LOCATION DEFAULTS

-- 
================================
David Halik
System Administrator
OIT-CSS Rutgers University
dhalik at jla.rutgers.edu
================================


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H




More information about the Developers mailing list