Plesk 9: wildcard ServerAlias and webmail not compatible?

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Plesk 9: wildcard ServerAlias and webmail not compatible?

Unread post 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.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

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

Unread post by scott »

Maybe try setting horde to load up before the plesk config?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

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

Unread post 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?
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

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

Unread post by breun »

Seems I'm not the only one having this problem: http://forum.parallels.com/showthread.php?t=91870
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

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

Unread post 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.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

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

Unread post by mikeshinn »

I know one sure fire way to find out! ;-)
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

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

Unread post 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?
Lemonbit Internet Dedicated Server Management
Post Reply