解析wamp5下虚拟机配置文档
Wamp下,虚拟机配置分为三个步骤,实例如下:
1.修改Hosts文件
C:\WINDOWS\system32\drivers\etc\Hosts
127.0.0.1 dz1.test.
2.编辑wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf文件,在文件底部加入以下代码
<VirtualHost *:80>
ServerName dz1.test.
ServerAlias dz1.test.
DocumentRoot "e:/wamp//dz1"
</VirtualHost>
另外加上这句以后,如果没有狼蚁网站SEO优化这句的记得加上,不然打localhost打不开最好再加上
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "D:/wamp/"
</VirtualHost>
3.编辑E:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf文件,在文件底部加入以下代码
注:不加此代码会报403错误
打开配置文件httpd.conf,并去掉#Include 0conf/extra/httpd-vhosts.conf前面的#号!!
<Directory "e:/wamp//dz1">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
重启Apache,然后测试dz1.test.,就可以了。
。。。。。。。。。。。。。。。。
注意红色加粗的部分,必须相同,且文件存在
编程语言
- 机械手焊接机器人编程 机械手焊接设备编程
- vb数据库编程实例,vb做数据库
- tiobe世界编程语言排行榜,全球编程语言排行
- 成都java编程培训 成都it编程培训中心
- 编程基础培训,编程基础知识培训
- flash游戏编程基础教程,flash游戏开发教程
- 不会英语能学编程吗 不会英语可以学程序员吗
- 爱心代码编程C语言 爱心代码编程c语言公式
- c语言编程学习入门 c语言编程快速入门
- 西门子plc编程培训 西门子plc编程培训班
- 哪里可以学编程 台州哪里可以学编程
- 少儿编程哪个好 少儿编程哪个品牌好
- 编程是什么意思,图形编程是什么意思
- c语言编程软件下载,c语言编程软件在哪下载
- java编程软件下载,java编程下载手机版
- ug编程培训学校,ug编程培训教程