Deprecated: Function set_magic_quotes_runtime() is deprecated in /nfs/c01/h07/mnt/2939/domains/cidamon.com/html/blog/textpattern/lib/txplib_db.php on line 14
Cidamon: Blog: Create wildcard subdomain using plesk
Create wildcard subdomain using plesk
27 November, 2008

Its a mystery to me, why it is so hard to create a wild card sub domain in plesk. Any way here is how it is done.

First go to Domains>domain.com>Dns Settings
Then go to “Add record” and add the following record

Record type: “A”
Domain Name: *.domain.com
IP Address: ip address of the main server (us usually your plesk address ip)

After that restart your domain name service.

Now you will need your root user info to do the rest of the job.

Log into your server using root info (not in plesk). Then go to
/var/www/vhosts/domain.com/conf
Here check if you already have “vhost.conf” then edit that otherwise
create a new one using following command

vi vhost.conf

then add the following entry in the file

ServerAlias *.domain.com

Now save the file and get back to plesk and restart your apache and dns(bind) service.

Give it some a little time to get updated and then try.

---

Commenting is closed for this article.