Plesk with Wildcard Subdomain and Fixed Subdomain

You can setup a wildcard subdomain in plesk using a /conf/vhost.conf file on the virtual host ( eg:  ServerAlias * )

If you then go and create a static subdomain ( eg: ) using the plesk interface there is a good chance that the previous wildcard subdomain will take precedence ( because it was setup first in plesk ).

We have to make the subdomain apache configuration ( ) load before the wildcard configuration on the main site ( )

On Centos I created this file: /etc/httpd/conf.d/ containing:

Include ‘/var/www/vhosts/’

This way apache/httpd will load the file before the plesk zz010_psa_httpd.conf file in conf.d directory.

(name it starting with “y” so that the other configs (eg: php) load first)

Leave a Reply

Your email address will not be published.