Applicable to:
- Plesk for Linux
Question
How to add an alias for subdomain in Plesk for Linux?
For example, the subdomain name is one.example.com and the alias name should be alias.one.example.com.
Answer
This functionality is yet to be implemented in Plesk. If you think such feature should be included then take part in our product improvement and share your thoughts with development team by the link https://features.plesk.com/tabs/28-planned-roadmap.
Top-ranked suggestions are going to be implemented in the next Plesk versions.
Consider applying any of the below workarounds:
- Log into Plesk.
- Recreate the subdomain as a "domain" by clicking on Domains > Add domain and naming it one.example.com
-
Click on Domains > Add Domain Alias and select the domain one.example.com:
Note: If you are a domain owner and Apache/nginx additional directives are hidden, please contact the server administrator or provider for assistance.
- Log into Plesk.
-
Add additional directives for the subdomain in Domains > sub.example.com > Apache & nginx Settings:
-
for Additional directives for HTTP and Additional directives for HTTPS:
CONFIG_TEXT: ServerAlias alias.sub.example.com
-
for Additional nginx directives:
CONFIG_TEXT: server_name alias.sub.example.com;
-
Comments
Workaround 2 did not work! When http the subdomain alias, then the Web Server's Default Page appears.
I am suggesting the following workaround:
1. Create a new subdomain (Alias)
2. Change Hosting type to forwarding/frame forwarding
Following e.g: plh.wedeva.com (is Alias) → pli.wedeva.com
Workaround 1 not working in 18.0.68. In GUI you can't select a subdomain "for the domain".
Please sign in to leave a comment.