Adding www. to subdomain in plesk

Add the following line to /var/www/vhosts/subdomains/your-subdomain/conf/vhost.conf

[sourcecode]ServerAlias www.sub.domain.com[/sourcecode]

The add an A record of www.subdomain with the IP address of the server.

Then execute this command as root.

[sourcecode]<strong>/usr/local/psa/admin/sbin/websrvmng -a -v</strong>[/sourcecode]

Be the first to comment

Leave a Reply

Your email address will not be published.


*