Search Type:
Search for:

Language:

Product:
Category:
No categories for selected product

[Info] How do I create wildcard subdomain?

Article ID: 2239 
Last Review: Oct,6 2008
Author: Dmitry Frantsev
Last updated by: system APPLIES TO:
  • Parallels Plesk Panel for Linux/Unix

Symptoms

I have a few subdomains. But sometimes visitors are accessing non-existing subdomains. I wish to create one subdomain in order to catch all non existing subdomains for the domain.

Resolution

Create a subdomain for the domain you wish with the name like 'zz-wildcard' in Plesk. This domain have to be the last in the subdomains' list ordered alphabetically, so we name it beginning from 'zz'.

Add special configuration (catchall for all subdomains) to the vhost.conf file of this subdomain, for example    /var/www/vhosts/domain.com/subdomains/zz-wildcard/conf/vhost.conf:
ServerAlias *.domain.com

Rebuild Apache configuration using websrvmng utility:
PRODUCT_ROOT_D/admin/sbin/websrvmng  -a -v

Now, requests to all non existing subdomains have to go to zz-wildcard.domain.com.



Subscription for changes to this article Subscription for changes to this article

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields
 
 
 
 
 
 
For Home
For Business
For Hosters
For SaaS
For Developers
 
Desktop Virtualization
- Parallels Desktop for Mac
- Parallels Workstation
- Parallels Workstation Extreme
Server Virtualization
- Parallels Server
- Parallels Server for Mac
- Parallels Virtuozzo Containers
- Parallels Infrastructure Manager
Automation
- Parallels Operations Automation
- Parallels Business Automation
- Parallels Plesk Family
More Products