• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

ServerAlias gets added to primary domain and subdomain?

HostaHost

Silver Pleskian
We have a site that is domain "domain.com" and which has a subdomain defined, "uk.subdomain.com".

We have added an alias domain "domain.co.uk" to ONLY the primary. The primary is also the default site for the IP address that it resides on.

What Plesk ends up doing is adding:

ServerAlias "www.domain.co.uk"
ServerAlias "domain.co.uk"

to the httpd.include file of both the primary site AND the subdomain, and the incoming request must hit the subdomain in apache's memory first, because visitors are incorrectly given the subdomain instead of the intended alias to the primary.

This is a Plesk 10.4.4 all updates applied. Can anyone else confirm this bug before I waste a support ticket? I reproduced it on a second site.
 
Hi Hostasaurus.Com,

I've tried to repeat this on Plesk 10.4.4 and figure out that Plesk puts correct ServerAliases to vhosts' httpd.conf includes.

Primary domain:
oro.ppu104demo.com

Secondary domain:
zzz.oro.ppu104demo.com

Another primary domain:
sub.oro.ppu104demo.com

Domain alias:
aaa.com.tw

As you can see from below, ServerAlisases are correct: aaa.com.tw and zzz.aaa.com.tw

In your case ServerAliases should be: domain.co.uk and uk.subdomain.domain.co.uk

root@ppu10-4:~# grep ServerAlias /var/www/vhosts/oro.ppu104demo.com/conf/13474396310.03098000_httpd.include
ServerAlias "www.oro.ppu104demo.com"
ServerAlias "ipv4.oro.ppu104demo.com"
ServerAlias "aaa.com.tw"
ServerAlias "www.aaa.com.tw"
ServerAlias "ipv4.aaa.com.tw"

root@ppu10-4:~# grep ServerA /var/www/vhosts/zzz.oro.ppu104demo.com/conf/13474396310.03098000_httpd.include
ServerAlias "www.zzz.oro.ppu104demo.com"
ServerAlias "ipv4.zzz.oro.ppu104demo.com"
ServerAlias "zzz.aaa.com.tw"
ServerAlias "www.zzz.aaa.com.tw"
ServerAlias "ipv4.zzz.aaa.com.tw"


root@ppu10-4:~# grep ServerA /var/www/vhosts/sub.oro.ppu104demo.com/conf/13474430460.58489100_httpd.include
ServerAlias "www.sub.oro.ppu104demo.com"
ServerAlias "ipv4.sub.oro.ppu104demo.com"
 
Back
Top