virtualhost,apache,virtual domain

Terry Davis tdavis@birddog.com
Wed, 28 Mar 2001 17:23:26 -0600


Here is my servers.php:
$servers = array();

$servers['domain1'] = array(
    'name' => 'domain1.com',
    'server' => 'mail.domain1.com',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'domain1.com',
    'preferred' => 'mail.domain1.com'
);

$servers['domain2'] = array(
    'name' => 'domain2.com',
    'server' => 'mail.domain2.com',
    'protocol' => 'imap',
    'port' => 143,
    'folders' => '',
    'namespace' => '',
    'maildomain' => 'domain2.com',
    'preferred' => 'mail.domain2.com'
);

I am using Name based virtual hosts in apache.
Here is that info:
<VirtualHost ip.address>
        DocumentRoot /home/web/htdocs/horde/imp
        ServerName mail.domain1.com
        ErrorLog logs/domain1-error_log
        CustomLog logs/domain1-access_log combined
</VirtualHost>

<VirtualHost ip.address>
        DocumentRoot /home/web/htdocs/horde/imp
        ServerName mail.domain2.com
        ErrorLog logs/domain2-error_log
        CustomLog logs/domain2-access_log combined
</VirtualHost>

If I go to http://mail.domain2.com/horde/imp like I am supposed to it
'redirects' me to hostname.domain1.com.

Where is that coming from?
Thank you,
Terry
-- 
Terry Davis
Systems Administrator
BirdDog Solutions, Inc.
2102 N 117th Ave
Omaha, NE 68164
voice: (402) 829-6059
fax: (402) 829-6199
pager: (877) 973-6995
tdavis@birddog.com www.birddog.com