-
-
xampp配置虚拟主机 xampp 配置虚拟主机 第一步:在apache/conf/extra/httpd-vhosts.conf中添加虚拟主机配置 :如<VirtualHost *:80>ServerAdmin a@a.comDocumentRoot "E:/phpProj/test"ServerName test.comServerAlias www.test.comErrorLog "logs/test-error.log"CustomLog "logs/test-access.log" combined</VirtualHost>可添加多个<VirtualHost *:80>ServerAdmin a@a.comDocumentRoot "E:/phpProj/aa"ServerName aa.comServerAlias www.aa.comErrorLog "logs/aa-error.log"CustomLog "logs/aa-access.log" combined</VirtualHost>第二步:在apache/conf/httpd.conf中把<Directory />省略....</Directory> 改成<Directory />Options FollowSymLinksAllowOverride NoneOrder deny,allowallow from all </Directory>第三步修改hosts文件127.0.0.1 test.com www.test.com127.0.0.1 aa.com www.aa.comok完成
点这里复制本页地址发送给您QQ/MSN上的好友
- 300*300广告