user1664053
user1664053

Reputation: 21

How do you create a domain alias of a subdomain in Plesk 11?

We currently have sites.adomain.com set up in Plesk 11 and want to use bdomain.com as an alias for sites.adomain.com. The old method does not seem to work which was:

vi /var/www/vhost/adomain.com/subdomains/sites/conf/vhost.conf
contents:

ServerAlias "bdomain.com"
ServerAlias "www.bdomain.com"

Does anyone know how to do it for the new version of Plesk?

Thanks.

Upvotes: 2

Views: 4315

Answers (2)

Nicomak
Nicomak

Reputation: 2339

Insert your ServerAlias directives in a file called:

/var/www/vhosts/system/yourdomain.com/conf/vhost.conf

And then you have to run this for changes to take effect:

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=yourdomain.com

Simply restart httpd won't make it work.

Upvotes: 1

Sergey L
Sergey L

Reputation: 684

Try /var/www/vhost/sites.adomain.com/conf/vhost.conf

Upvotes: 1

Related Questions