Creating wildcard subdomains in Plesk

First step in creating wildcard subdomains in Plesk is you should have 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.

Then you will need to configure Apache with the following line in the domain's vhost.conf:

ServerAlias *.domain.com

If the vhost.conf didn’t exist before, you will need to run:

# /usr/local/psa/admin/bin/websrvmng -av

You will need to reload the httpd service so that the changes you did will take effect.

Use this command:

# /etc/init.d/httpd reload

Recommended buys!

0 comments