Hi,

I'm using a multisite configuration, each site has its own database.
I'm getting the following errors.

[Thu Aug 24 14:31:13 2006] [error] [client ::1] PHP Notice:  Undefined index:  HTTP_HOST in /path/includes/bootstrap.inc on line 120
[Thu Aug 24 14:31:13 2006] [error] [client ::1] PHP Notice:  Undefined index:  HTTP_HOST in /path/includes/bootstrap.inc on line 169

I reduced the path for this post.

The only modification I have on the boostrap.inc file is on line 119

$uri = explode('/', $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME']);

to

$uri = explode('/', $_SERVER['REQUEST_URI'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME']);

I'm thinking it may be something with the .htaccess file,
since I haven't done anything to it.

Multi-Site .htaccess configuration
http://drupal.org/node/25011

Although I'm not too sure, since all the sites are working fine.

Anyone who has experience setting up multisites have any advice??

thanks for any help

Comments

n1nja’s picture

I think its happening because I'm using symbolic links and don't need to modify the boostrap.inc file on line 119.

Any suggestions?

Thanks

n1nja’s picture

I'm still getting the same errors, there must be something I'm missing.

n1nja’s picture

Status: Active » Fixed

to fix the problem I forced the www for the url in .htaccess, since it was set like that in my settings.php.
what was happening is that users were trying to visit pages without www.

Anonymous’s picture

Status: Fixed » Closed (fixed)