Implementation of multi-site domain name bindings in Apache and PHP installation Apache2

Source: Internet
Author: User
Configuring the Environment
System: Win7
PHP Version: 5.3.x
MYSQL version: 5.0.27
apache:2.2.4 (WIN32)
Setup method:
Open D:\wamp\bin\apache\Apache2.2.17\conf\httpd.conf
At the end of the add
Namevirtualhost *:80

DocumentRoot "D:\wamp\www\bbs"
ServerName www.a.com

The configuration should be noted:
ServerName *:80
The * can be changed to native IP such as 192.168.1.11
Namevirtualhost *:80 VirtualHost *:80 remain intact
In the Hosts file, write a sentence: 127.0.0.1 www.a.com
(Hosts file location:-Windows nt/2000/xp/2003/vista default path:%systemroot%\system32\drivers\etc\)
In this way, the domain name a.com is tied to the native root directory, which is equivalent to http://localhost or
http://127.0.0.1 input www.a.com more convenient AH.
Launch Apache service, access with above domain name

The above describes the Apache and PHP installation APACHE2 implementation of multi-site domain name binding, including the Apache and PHP installation aspects, I hope to be interested in PHP tutorial friends helpful.

  • 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.