In some situations, you may want to have domain.com as well as *.domain.com point to the same site in Plesk. Plesk will automatically set up hosting for domain.com and www.domain.com within the Apache configuration, but you can direct all subdomains for a particular domain to a certain virtual host fairly easily.
Add a CNAME or A record for *.domain.com which points to domain.com (for a CNAME), or the domain’s IP (for an A record).
Add the following line,
*.domain.com. IN CNAME domain.com.
*.domain.com. IN A 220.127.116.11(A Record IP of the domain)
Restart the DNS service
Edit the /var/www/vhosts/domain.com/conf/vhost.conf or create the vhost.conf if doesn’t exist and add the following line,
Add the following line in /var/www/vhosts/domain.com/conf/httpd.include file,(With in 80,443 VirtualHost entries)
Then restart the apache,
Hope you could use wildcard subdomains in Plesk. If you need any assistance feel free to contact us. our tech’s will assist you.
Now you can get more interesting update directly to your inbox with a subscription.