本文摘自PHP中文网,作者V,侵删。

具体方法如下:
1、开启“虚拟目录配置文件”httpd-vhosts.conf
文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
将以下配置:
1 2 | # Virtual hosts
# Include conf/extra/httpd-vhosts.conf
|
改为:
1 2 | # Virtual hosts
Include conf/extra/httpd-vhosts.conf
|
2、设置虚拟目录可访问
文件路径:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
将以下配置:
1 2 3 4 | < Directory />
AllowOverride none
Require all denied
</ Directory >
|
改为:
阅读剩余部分
相关阅读 >>
Apache服务器的配置文件介绍
Apache顶级项目是什么意思
Apache的工作模式介绍
Apache cordova是什么
Apache的poi是什么
linux如何安装Apache tomcat
5个优化Apache服务器性能的技巧
centos系统下怎么使用yum安装Apache
centos如何启动Apache服务
Apache怎么设置环境变量
更多相关阅读请进入《Apache》频道 >>
转载请注明出处:木庄网络博客 » 如何设置apache虚拟目录