在本地如何搭建虚拟主机(Appserver集成环境)

首先打开 C:/WINDOWS/System32/Driver/etc/hosts文件

添加 127.0.0.1 test.example.com (域名可以自己定义)

然后打开 D:\AppServ\Apache2.2\conf\extra\httpd-vhosts.conf

<VirtualHost *:80>
         DocumentRoot "D:/www/test"
ServerAlias test.example.com
<Directory "D:/www/test">
Options FollowSymLinks IncludesNOEXEC
DirectoryIndex index.php
AllowOverride All
Order Deny,Allow
Allow from all
</Directory>

</VirtualHost> 

保存 配置完毕  来自夕越网 http://www.dbyhw.com

你可能感兴趣的:(server)