2

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.

user1664053
  • 21
  • 1
  • 2

2 Answers2

1

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

Sergey L
  • 684
  • 3
  • 3
1

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.

Nicomak
  • 2,319
  • 1
  • 21
  • 23