• Article for your preferred language does not exist. Below is international version of the article.

Article ID: 2239, created on Oct 8, 2007, last review on Feb 14, 2016

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk Automation 11.5


How to create one subdomain to catch all non-existent subdomains for a domain?


Note: The below solutions are for Linux only and will not work on Windows, because IIS does not support wildcard host headers.

For Plesk 10.4 and later versions:

Create a wildcard subdomain by entering "*" for its name:

For Plesk 10.3 and earlier versions:

Create a subdomain for the domain in Plesk with a name like "zz-wildcard." It has to be the last in the subdomain list, which is ordered alphabetically, so start its name with "zz."

Add special configuration (catch-all for all subdomains) to the "vhost.conf" file of this subdomain, e.g.,  /var/www/vhosts/example.com/subdomains/zz-wildcard/conf/vhost.conf: ServerAlias *.<YOUR_DOMAIN_NAME> Rebuild Apache configuration using websrvmng utility:

# /usr/local/psa/admin/sbin/websrvmng   --reconfigure-vhost --vhost-name=<YOUR_DOMAIN_NAME> 

or httpdmng utility:

# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain <YOUR_DOMAIN_NAME>

Now, all nonexistent subdomain requests will to go to "zz-wildcard.example.com."

Note: it is needed to replace <YOUR_DOMAIN_NAME> above with the actual domain name.

a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079 0efe2234e2ce513f2186f26c68447702

Email subscription for changes to this article
Save as PDF