[horde] Name-based virtual hosting for imp & mimp

Jan Schneider jan at horde.org
Thu Apr 29 15:48:08 UTC 2010


Zitat von Lam Kelvin <p52ka at yahoo.com.hk>:

> 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"),

The webroot for horde is '/horde' in your setup. The webroot for imp is ''.

> 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

No way that this really works with the setup you described above.

> 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
>
>
>
>
>
>
>
>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list