如何设置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>

改为:

阅读剩余部分

相关阅读 >>

linux下如何查看是否安装了Apache服务

Apache开启url重写的方法

Apache怎么卸载

安装Apache后如何添加代理模块

Apache启动后无法访问网页怎么办

5个优化Apache服务器性能的技巧

ApacheApache tomcat有什么区别

linux中Apache设置压缩及缓存的方法实例

centos如何启动Apache服务

nginx为什么比Apache

更多相关阅读请进入《Apache》频道 >>



打赏

取消

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

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

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

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

评论

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

    正在狠努力加载,请稍候...