Wampserver虛擬機配置記錄

原文地址:http://blog.csdn.net/clj9017/article/details/12705725php

第一步html

在http.conf 文件裏面找到 ,開啓 Virtual hostsapache

# Virtual hosts瀏覽器

Include conf/extra/httpd-vhosts.confjsp

第二步ide

在httpd-vhosts.conf文件添加以下內容.net

<VirtualHost *:80>    
    DocumentRoot "D:/wamp/www/m"     
    ServerName www.m.com
    ServerAlias www.m.com
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>htm

第三步blog

在host文件裏面 添加get

127.0.0.1       www.m.com

重啓apache

在瀏覽器輸入 www.m.com 就能看到  "D:/wamp/www/m"     目錄下面的 index.html/index.htm/index.PHP/index.asp/index.jsp/index.aspx

相關文章
相關標籤/搜索