Create wildcard subdomain using plesk

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.

<!–

Hawk

–>

Explore posts in the same categories: plesk

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s


%d blogger menyukai ini: