• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

ServerAlias gets added to primary domain and subdomain?

HostaHost

Regular 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