• 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

Resolved Sub-domain confusion

Sysop

Basic Pleskian
I'm confused how to accomplish the following:

maindomain.com (already setup)
|
sub.maindomain.com ( what to make this? alias? sub-domain? how should nameservers be setup? slave dns? etc. )
|
|____ otherdomain.com/sub (already setup)

It's unclear to me how to setup a sub domain of (maindomain) to point to (otherdomain/path). I would think an alias would be the way to do it, but the problem I'm having is how exactly should the subdomain be setup in the first place. I don't really need hosting or anything like that, just the subdomain name to point to otherdomain/path.

Thank you.
 
Hi Sysop,

the correct way would be to setup "sub.maindomain.com" as an ALIAS at "otherdomain.com", not at "maindomain.com". ;)

After your ALIAS - creation, you would then change the "hosting settings" at "sub.maindomain.com" to the desired document root: /var/www/vhosts/otherdomain.com/httpdocs/sub
 
Back
Top