[horde] Name-based virtual hosting for imp & mimp
Lam Kelvin
p52ka at yahoo.com.hk
Tue Apr 27 09:15:11 UTC 2010
Dear All,
I want to setup a name virtual host for imp & mimp on Ubuntu Linux 8.10. And I had use the sample setting as in http://wiki.horde.org/FAQ/Admin/Config but was fail. My web config file :
<VirtualHost 10.0.0.9:80>
ServerName sample.com.hk
ServerAlias www.sample.com.hk
ServerAdmin root at sample.com.hk
DocumentRoot /var/www/
</VirtualHost>
<VirtualHost 10.0.0.9:80>
# Name Virtual Host for imp
ServerName mail.sample.com.hk
ServerAlias www.mail.sample.com.hk
ServerAdmin root at sample.com.hk
Alias /horde/ /var/www/horde/
DocumentRoot /var/www/horde/imp
</VirtualHost>
<VirtualHost 10.0.0.9:80>
# Name Virtual Host for mimp
ServerName mmail.sample.com.hk
ServerAlias www.mmail.sample.com.hk
ServerAdmin root at sample.com.hk
Alias /horde/ /var/www/horde/
DocumentRoot /var/www/horde/mimp
</VirtualHost>
I can only set it in web config file
Alias /horde/ /var/www/horde/
DocumentRoot /var/www/horde/
and edit the register.php to:
$this->applications['horde'] = array(
'fileroot' => dirname(__FILE__) . '/..',
'webroot' => '',
'initial_page' => 'login.php',
'name' => _("Horde"),
and also the conf.php to:
$conf['cookie']['path'] = '/';
I can login the horde imp by http://mail.sample.com.hk
and horde mimp by http://mail.sample.com.hk/mimp
If anything missing so that I can access the horde/imp by http://mail.sample.com.hk
and that access the horde/mimp by http://mmail.sample.com.hk
More information about the horde
mailing list