I got a site at an ISP which can be accessed in several
by www.aaa.org or www.bbb.org .
In Apache the site SERVER_NAME is currently set to
www.aaa.org but I do not yet have that domain, it will
be bought later.
To test the site I got another domain, a long one from
my ISP with customer number and so on - lets call it
When I access http://www.bbb.org/
$HTTP_SERVER_VARS['SERVER_NAME'] is still equal to
www.aaa.org and then I can only load the first page
from the server and no graphics.
I solved the problem by adding this line to index.php
if (!defined('SERVER_NAME')) define('SERVER_NAME',
In that way the server name is equal to what the user
typed in and not what the server think is the name.
I guess that it might be better to change
lib/config.php but someone here might have a better idea.