Page 1 of 1

Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Mon Sep 21, 2009 8:33 am
by breun
We have clients that have ServerAlias *.example.com in their vhost.conf, so they can use mod_rewrite or other code to use 'virtual subdomains'. This used to work just fine under Plesk 8.6, but under Plesk 9.2.2 it seems that webmail.example.com is also catched by this ServerAlias, so webmail is effectively unreachable. I think this might have something to do with Horde config being in a separate file in /etc/httpd/conf.d/ and being loaded after the Plesk configuration.

Does anyone have an idea on how to be able to use virtual subdomains without explicitly listing all virtual subdomains (instead of *.example.com)? Listing them all individually is not an option for a number of customers as this list changes frequently.

Re: Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Mon Sep 21, 2009 9:13 am
by scott
Maybe try setting horde to load up before the plesk config?

Re: Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Mon Sep 21, 2009 9:26 am
by breun
The config files in /etc/httpd/conf.d/ are probably loaded in alfabetical order and yeah, these are the last two:
zz010_psa_httpd.conf
zzz_horde_vhost.conf
I could change one of these filenames to change the order, but that doesn't feel like a great and stable solution. Any change in Plesk will probably undo this, right?

Re: Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Mon Sep 21, 2009 9:38 am
by breun
Seems I'm not the only one having this problem: http://forum.parallels.com/showthread.php?t=91870

Re: Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Mon Sep 21, 2009 10:10 am
by faris
what about a symlink from 00_horde.conf to zzz_horde_vhost.conf ? That won't get overwritten and will get loaded first.

Sure, you'll get errors when zzz_horde(etc) then gets loaded twice, but maybe it will work anyway?

Of course maybe there's a reason why the plesk config has to load before the horde one :-(

Faris.

Re: Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Tue Sep 22, 2009 6:57 pm
by mikeshinn
I know one sure fire way to find out! ;-)

Re: Plesk 9: wildcard ServerAlias and webmail not compatible?

Posted: Sat Oct 03, 2009 10:27 am
by breun
The problem seems to be more general: the webmail subdomain for all domain aliases is not showing Horde, but the site. This looks like a bug in Plesk 9(.2.2). Others seeing this?