Home Blog Portfolio Development Contact Us Recommends
Building One Application at a Time

Plesk, vhost.conf, and Sub-Domains

If anyone that has server configuration knowledge and has tried to configure a server with Plesk installed, they probably had to go through a learning curve to get everything strait. Here is what I learned:

When creating new sub-domains with a wildcard domain, each sub-domain needs its own hosting account. To do that you go through the same process when adding a domain except with your sub-domain name (eg. sub.domain.com). Once the hosting account it set up you need to update the vhost.conf file to turn on PHP for the new DocumentRoot for your subdomain (if it’s not the default DocumentRoot). Add this to your virtual host:

php_admin_flag engine on

That’s it.

Leave a Reply