Search

Search for:
Language:  

No categories for selected product

[Info] How do I create a wildcard subdomain?

Article ID: 2239 
Last Review: Apr, 28 2012
Views:
APPLIES TO:
  • Parallels Plesk Panel 10.x for Linux
  • Parallels Plesk Panel 9.x for Linux/Unix
  • Parallels Plesk Panel 8.x for Linux/Unix

Symptoms

I have a few subdomains. However, visitors are sometimes accessing nonexistent subdomains. I want to create one subdomain to catch all nonexistent subdomains for the domain.

Resolution

For Parallels Plesk Panel 10.4 and later versions:

You may simply create a wildcard subdomain by entering "*" for its name:



For Parallels Plesk Panel 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/domain.com/subdomains/zz-wildcard/conf/vhost.conf:
ServerAlias *.<YOUR_DOMAIN_NAME>

Rebuild Apache configuration using the websrvmng:
PRODUCT_ROOT_D/admin/sbin/websrvmng   --reconfigure-vhost --vhost-name=<YOUR_DOMAIN_NAME>

or the httpdmng utility (for newer PP versions):
PRODUCT_ROOT_D/admin/bin/httpdmng --reconfigure-domain <YOUR_DOMAIN_NAME>

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

Note: You need to replace <YOUR_DOMAIN_NAME> above with the actual domain name.





Email subscription for changes to this article Email subscription for changes to this article

Please provide feedback on this article

* Did this article help you solve your issue?
Yes
No
What can we do to improve this article?

PLEASE NOTE: Knowledge Base feedback is reviewed occasionally and we do not reply to most of the individual comments. Please contact us using one of the Support channels for a response to any support inquiries. We appreciate your feedback.

Subscribe me for article updates. My email
 
 
 
 
 
 
For Home
For Hosters
For SaaS
For IaaS
For Developers
For Health Care
 
Desktop Virtualization
- Parallels Desktop 7 for Mac
- Parallels Transporter
- Parallels Mobile
- Parallels Desktop Switch to Mac Edition
- Parallels Workstation
- Parallels Workstation Extreme
- Parallels Desktop for Mac Enterprise Edition
Server Virtualization
- Parallels Server for Mac 4.0
- Parallels Server for Mac 4.0 Mac mini Edition
- Parallels Server for Mac Bare Metal Edition
- Parallels Server Bare Metal
- Parallels Virtuozzo Containers
Automation
- Parallels Operations Automation
- Parallels Automation for Cloud Infrastructure
- Parallels Business Automation
- Parallels Business Automation Standard
- Parallels Virtual Automation
- Parallels Plesk Panel Suite
- Parallels Small Business Panel
- Parallels Domain/SSL Reseller Program
- Parallels Partner Storefront
More Products