• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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