From bb3d610760709cf17a9a26ab9c6b12d7d5d26504 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 25 Nov 2005 10:39:00 +0000 Subject: - Let Drupal try to resolve the . Makes configuration a tad easier. --- sites/default/settings.php | 17 ++++++++++++----- 1 file 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: -- cgit v1.2.3