• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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