Native Apache Test Pan-resolution

Source: Internet
Author: User
System: Windows 8.1
Server: Apache
Programming Language: PHP
Demand: Build pan-analytic environment, easy to test, do not know can be realized?
If so, how do you do it?
the current thinking: This machine to build a DNS server, it can be implemented, but my system is Windows 8.1, it seems that can not build DNS
Like what:
Fan.com
Aaa.fan.com
Bbb.fan.com
All resolved to: D:\www\fanjiexi\ directory
Hosts file: 127.0.0.1 fan.com

Reply content:

System: Windows 8.1
Server: Apache
Programming Language: PHP
requirements : To build a pan-analytic environment, easy to test, do not know can be achieved?
If so, how do you do it?
Current Ideas : This machine to build a DNS server, it can be achieved, but my system is Windows 8.1, it seems that can not build DNS
Like what:
Fan.com
Aaa.fan.com
Bbb.fan.com
All resolved to: D:\www\fanjiexi\ directory
Hosts file: 127.0.0.1 fan.com

Re: The Flying Pig

Recommended method
In your native Apache, set up virtual host to write the following configuration to the Apache configuration file according to your own requirements.

Apache


  
   
    
       ServerAdmin a@host.example.com    DocumentRoot /var/www/xxx你想要解释的文件夹位置    ServerName xxx这个服务器的域名    ErrorLog logs/xxx.log    CustomLog logsxxx.log common
  
   

=================================
In your DNS server, establish a explained

域名名称    记录类型    主机记录    解析线路    记录值 mx优先级   TTLa.com   A   *   默认  127.0.0.1   --  
  • 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.