[Kolab-devel] [issue4274] multi-domain vhosts for kolab/horde work, but not without changes

Gavin McCullagh issues at kolab.org
Mon Mar 29 17:30:25 CEST 2010


New submission from Gavin McCullagh <gavin.mccullagh at gcd.ie>:

We have a number of mail domains running in kolab.

For consistency, we want to be able to send people to 
  https://mail.their.domain

In order to do so, we've created vhosts in
/kolab/etc/kolab/templates/httpd.local.template like that below for each extra
domain.

This doesn't quite work.  In order to get it to work, you need to also change 

  $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];

in /kolab/etc/kolab/templates/webclient-kolab-conf.template.

After that it seems to work fine.  It would be nice also if the webmail path
weren't hard coded:

   $conf['cookie']['path'] = '/client';

as I'd prefer to run the webmail on the root of the domain in this case.  This
is less important to us though.

Gavin

NameVirtualHost 10.1.40.173:443
<VirtualHost 172.20.1.173:443 10.1.40.173:443>
  ServerName mail.their.domain
  DocumentRoot /kolab/var/kolab/www
  ErrorLog /kolab/var/apache/log/mail.their.domain/apache-error.log
  CustomLog /kolab/var/apache/log/mail.their.domain/apache-access.log common
  SSLEngine               on  
  SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
  SSLCertificateFile     
/kolab/etc/kolab/ssl/mail.their.domain/mail.their.domain.cert
  SSLCertificateKeyFile  
/kolab/etc/kolab/ssl/mail.their.domain/mail.their.domain.key

  RewriteEngine On
  RewriteOptions inherit

  <Files ~ "\.(cgi|shtml|phtml|php4|php3?)$">
    SSLOptions +StdEnvVars
  </Files>

  <Location "/">
    ErrorDocument 403 https://mail.their.domain/client
    SSLRequireSSL
  </Location>
  <Location "/fbview">
    ErrorDocument 403 https://mail.their.domain/fbview/
    SSLRequireSSL
  </Location>
  <Location "/admin">
    SSLRequireSSL
  </Location>

  RewriteEngine On
  RewriteOptions inherit

  <Files ~ "\.(cgi|shtml|phtml|php4|php3?)$">
     SSLOptions +StdEnvVars
  </Files>

  <Directory "/kolab/var/kolab/www/cgi-bin">
     SSLOptions +StdEnvVars
  </Directory>
  
</VirtualHost>

----------
messages: 24522
nosy: gavinmc
status: unread
title: multi-domain vhosts for kolab/horde work, but not without changes

______________________________________
Kolab issue tracker <issues at kolab.org>
<https://issues.kolab.org/issue4274>
______________________________________




More information about the devel mailing list