문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top