From c50a1243593001d668cff2154da03f96354a987f Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 26 Jul 2010 20:54:59 +0000 Subject: [PATCH] autogenerate $config['base_url'] (why didn't we do this all along?) git-svn-id: http://www.observium.org/svn/observer/trunk@1490 61d68cd4-352d-0410-923a-c4978735b2b8 --- config.php.default | 2 +- includes/defaults.inc.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.php.default b/config.php.default index 219228de58..5dcf9bd3c5 100755 --- a/config.php.default +++ b/config.php.default @@ -15,7 +15,7 @@ $config['rrd_dir'] = $config['install_dir'] . "/rrd"; $config['log_file'] = $config['install_dir'] . "/observium.log"; ### -$config['base_url'] = "http://obeservium.company.com"; +$config['base_url'] = "http://observium.company.com"; ### Enable the below to use rrdcached. be sure rrd_dir is within the rrdcached dir ### and that your web server has permission to talk to rrdcached. diff --git a/includes/defaults.inc.php b/includes/defaults.inc.php index d1a7f4890a..bd393a2f5e 100644 --- a/includes/defaults.inc.php +++ b/includes/defaults.inc.php @@ -29,6 +29,7 @@ $config['nagios_plugins'] = "/usr/lib/nagios/plugins"; ### Web Interface Settings +$config['base_url'] = "http://" . $_SERVER["SERVER_NAME"] .":".$_SERVER["SERVER_PORT"]; $config['title_image'] = "images/observium-logo.png"; $config['stylesheet'] = "css/styles.css"; $config['mono_font'] = "DejaVuSansMono";