如何设置apache虚拟目录


本文摘自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》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...