• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Alias and subdomains

albans

Regular Pleskian
Hi,
I'm surprised that alises domains don't work with subdomains.

Explanation:
- I've a main domain name: domain.tld
- I create one subdomain, like: sub.domain.tld
- I add to domain.tld a domain alias: alias.tld
- Then whey I get to sub.domain.tld, it works fine
- BUT when I want to access sub.alias.tld, I get to the default page for the IP...

Is theire a way to make subdomains work for aliases? Thanks!
 
Hi,

I Have the same problem, no ideas ?

Thanks per advance.
 
I think you can put in subdomains/<subdomain name>/conf/vhost.conf:

serverAlias sub.alias.tld
 
Exactly right.

Create vhost.conf file in subdomains/subdomain/conf/

Add this to the file: serverAlias subdomain.domainalias.com

Run this command: /usr/local/psa/admin/sbin/websrvmng -v -u --vhost-name=domain.com or /usr/local/psa/admin/sbin/websrvmng -v -a to reconfigure all.

It should be working. I just tested this and it works for me on FC6.
 
Back
Top