среда, 28 марта 2012 г.

Wildcard subdomains in Plesk

Sometimes it may be useful to have a site catching all possible subdomain names of your domain. Like a.domain.com, b.domain.com, whatever. Apache web server supports wildcard names such as "*.domain.com", but until recently it required some work with Plesk internal configuration files (i.e. /var/www/vhosts/domain.com/conf/vhost.conf or /home/httpd/vhosts/domain.com/conf/vhost.conf) and thus wasn't available for no-shell-access users.

Since Plesk 10.4 it became much easier. Simply go to your control panel, find "Websites & Domains" tab, click "Add subdomain" and put "*" (asterisk) in the name field. You'll get wildcard subdomain.



Комментариев нет:

Отправить комментарий