PHP-Apache2.4虚拟目录配置
来源:互联网 发布:淘宝化妆品正品代购 编辑:程序博客网 时间:2024/05/24 02:28
2016年2月15日:
在配置Apache虚拟目录的时候,添加了一个节点如下:
<IfModule dir_module> #缺省载入页面 DirectoryIndex index.html #站点别名 Alias /myblog "E:/Apache virtual directory/Blog" <Directory E:/Apache virtual directory/Blog> #访问权限设置 Order allow,deny Allow from all </Directory></IfModule>
结果报错误1:Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration。注释掉“Order ... All”这两行代码后依然报错误2:Multiple <Directory>
arguments not (yet) supported.
错误1产生原因及解决方法:这是由于版本从2.2升级到2.4。将“Order allow,deny Allow from all”改为“Require all granted”,更多升级详情:http://httpd.apache.org/docs/trunk/upgrading.html
错误2产生原因及解决方法:Directory节点路径中出现空格或者其他格式错误,将其路径用“”括起来即可。
最终代码:
<IfModule dir_module> DirectoryIndex index.html blog.html Alias /myblog "E:/Apache virtual directory/Blog" <Directory "E:/Apache virtual directory/Blog"> Require all granted </Directory></IfModule>
在浏览器中输入:http://localhost/myblog/blog.html测试。
0 0
- PHP-Apache2.4虚拟目录配置
- apache2.4 虚拟目录配置
- 配置Apache2.4版本虚拟目录
- apache2.4配置网站虚拟目录
- 关于apache2.4 的虚拟目录配置问题
- apache2.4配置虚拟目录和虚拟主机
- Apache2.4 PHP 配置
- apache2.4 建虚拟目录
- apache2.4虚拟目录
- 【PHP学习笔记】apache2.4的虚拟目录权限
- 配置PHP与Apache2.4
- python Apache2.4 建立虚拟目录
- Ubuntu 配置Apache2虚拟目录及对应端口
- php配置虚拟目录
- ubuntu配置 php 虚拟目录
- windows下 apache2.4 + PHP 5.6 配置
- apache2-php-xdebug配置
- Apache2.4(httpd)配置多个虚拟目录,分别设置代理访问Node.js
- java Map及Map.Entry详解
- Mysql 优化 Notes
- 2016年该如何理财
- 当写烂代码的人离职之后....
- description
- PHP-Apache2.4虚拟目录配置
- Spark源码解读-TaskScheduler源码详解
- linux简单的解压命令
- MySQL性能优化的最佳20+条经验
- Web使用记录挖掘_web挖掘
- 打印正反三角图形
- Java虚拟机(JVM)
- BZOJ_P2242&Codevs_P1565[SDOI2011]计算器(快速幂+扩展欧几里得+BSGS)
- 【前端】浏览器跨域同源策略