Configure wildcard domain name resolution for a VM in Apache
Source: Internet
Author: User
In Apache, the virtual host is configured with wildcard domain name resolution ServerAlias. 1. multiple domain names are supported, for example, mail.linuxfly.org, smtp.linuxfly.org, and pop3.linuxfly.org are directed to the same virtual host, which can be written as www.2cto. comServerNamemail. linu... in Apache, the virtual host is configured with wildcard domain name resolution ServerAlias. 1. multiple domain names are supported. for example, mail.linuxfly.org, smtp.linuxfly.org, and pop3.linuxfly.org are directed to the same virtual host. they can be written as www.2cto.com ServerName mail. linuxfly. orgServerAlias smtp.linuxfly.org pop3.linuxfly.org ServerName is used to specify the preferred domain name. other domain names are specified by ServerAlias and separated by spaces. 2. support for wildcard domain name resolution ServerAlias support for delimiters. for example, we want all the second-level subdomain names under xx.a.com to be resolved using the same virtual host and can be set to www.2cto.com. ServerName xx.a.com ServerAlias * .xx.a.com DocumentRoot/var/www/htdocs/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.