1.開啟apche配置檔案httpd.conf,將include conf/extra/httpd-vhosts.conf前面的#去掉;
2.在apache的目錄下進入conf/extra;找到http-vhosts.conf檔案,開啟後在最後一行新增上如下**後重啟apache;
180>
2 serveradmin [email protected]
3 documentroot "
c:/wamp/www/hsy"4
servername hsy.com
5directoryindex index.php
6directoryindex index.html
7directoryindex index.htm
8 errorlog "
logs/dummy-host2.hleclerc-pc.ingenidev-error.log
"9 customlog "
logs/dummy-host2.hleclerc-pc.ingenidev-access.log
"common
10
3.進入c:\windows\system32\drivers\etc目錄,開啟hosts檔案,在下面新增127.0.0.1 test.com。
apache 配置虛擬目錄
apache http.conf配置虛擬目錄 alias b c htdocs blabla options indexes followsymlinks allowoverride none order allow,deny allow from all alias tt e twwork jxt...
apache配置虛擬目錄
servername admin.dede.com serveradmin webmaster localhost documentroot var dedecms admin assignuserid www admin www data options followsymlinks allowo...
apache配置虛擬目錄
1 開啟httpd配置裡include conf extra httpd vhosts.conf 2 定位到apache2 conf extra httpd vhosts servername www.test.cn 虛擬網域名稱 documentroot d wamp www manage bas...