Apache How does a site bind multiple domain names?

Source: Internet
Author: User

We must have encountered such a situation, the need to APACHE2 a site binding multiple domain names, then how to operate it? With Serveralias

Used to be stupid, to make multiple domains point to the same site always write:


ServerAdmin [email protected]
Documentroot/www/domain.com
ServerName domain.com


ServerAdmin [email protected]
Documentroot/www/domain.com
ServerName www.domain.com


ServerAdmin [email protected]
Documentroot/www/domain.com
ServerName abc.domain.com

This is equal to how many domain names are tied and how many virtual hosts are open ...

Later read a book, found that there is a call "Serveralias" things can be used, in fact, can be:


ServerAdmin [email protected]
Documentroot/www/domain.com
ServerName domain.com
Serveralias www.domain.com abc.domain.com #绑定多个域名

How many domain names to tie can be written behind Serveralias, separated by a space
Ding Feng Van van, 2881064156

Apache How does a site bind multiple domain names?

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.