Blogger Information
Blog 91
fans 0
comment 0
visits 203624
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
windows配置虚拟域名
何澤小生的博客
Original
988 people have browsed it

打开APACHE目录,打开Apache\conf\extra\httpd-vhosts.conf文件,按照实例配置

<VirtualHost *:80>
    ServerAdmin test@huwai.com
     DocumentRoot "F:\phpStudy\WWW\myrepos"    
     ServerName test.huwai.com    
     ErrorLog "logs/dummy-host2.example.com-error.log"    
     CustomLog "logs/dummy-host2.example.com-access.log" common
</VirtualHost>

然后再修改 host 文件(/windows/system32/drivers/etc/host)
添加如下内容:

127.0.0.1 test.huwai.com


Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post