summaryrefslogtreecommitdiff
path: root/sites/default/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'sites/default/settings.php')
-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: