Question

I have a server with Plesk 10.4 on CentOS6, which has an interface for creating aliases of a domain, but not aliases of a subdomain.

For example I have this subdomain set up:

test.my-domain.co.uk

And then I want to create aliases so that the following subdomains map to the same root:

alias-1.my-domain.co.uk 
alias-2.my-domain.co.uk
alias-3.my-domain.co.uk

I've tried creating a vhost.conf file like this:

<Directory /var/www/vhosts/my-domain.co.uk/subdomains/test>
    # aliases
    ServerAlias alias-1.my-domain.co.uk
    ServerAlias alias-2.my-domain.co.uk
    ServerAlias alias-3.my-domain.co.uk
</Directory>

And then reconfiguring all domains:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

However that fails.

Is this possible? Am I doing something wrong?

Was it helpful?

Solution

I suggest to

  • copy files and related data of subdomain to somewhere

  • delete subdomain

  • create add-on domain test.my-domain.co.uk

Now you should have ability to create aliases for test.my-domain.co.uk.

[update]

You are able create subdomain test.my-domain.co.uk and add-on domain test.my-domain.co.uk. The difference in fact that for add-on domain you will have ability to create domain aliases.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top