summaryrefslogtreecommitdiff
path: root/sites
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-25 10:39:00 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-25 10:39:00 +0000
commitbb3d610760709cf17a9a26ab9c6b12d7d5d26504 (patch)
tree5c70142168db52b01fb1fa56819923f51d06b4fb /sites
parentb1b1e2045f9a3bcc645293c372516e756f0dcb57 (diff)
downloadbrdo-bb3d610760709cf17a9a26ab9c6b12d7d5d26504.tar.gz
brdo-bb3d610760709cf17a9a26ab9c6b12d7d5d26504.tar.bz2
- Let Drupal try to resolve the . Makes configuration a tad easier.
Diffstat (limited to 'sites')
-rw-r--r--sites/default/settings.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/sites/default/settings.php b/sites/default/settings.php
index 0f51b2a84..67fed645b 100644
--- a/sites/default/settings.php
+++ b/sites/default/settings.php
@@ -79,9 +79,9 @@
* );
*
* Database URL format:
- * $db_url = 'mysql://username:password@localhost/database';
- * $db_url = 'mysqli://username:password@localhost/database';
- * $db_url = 'pgsql://username:password@localhost/database';
+ * $db_url = 'mysql://username:password@localhost/database';
+ * $db_url = 'mysqli://username:password@localhost/database';
+ * $db_url = 'pgsql://username:password@localhost/database';
*/
$db_url = 'mysql://username:password@localhost/database';
$db_prefix = '';
@@ -90,9 +90,16 @@ $db_prefix = '';
* Base URL:
*
* The URL of your website's main page. It is not allowed to have
- * a trailing slash; Drupal will add it for you.
+ * a trailing slash; Drupal will add it for you.
+ *
+ * Examples:
+ * $base_url = 'http://localhost';
+ * $base_url = 'http://example.com/drupal';
+ *
+ * By default, Drupal tries to set the $base_url for you using
+ * the code below.
*/
-$base_url = 'http://localhost';
+$base_url = 'http://'. $_SERVER['HTTP_HOST'];
/**
* PHP settings: