apache AddOutputFilter html 支持Include
来源:互联网 发布:aso榜单优化 编辑:程序博客网 时间:2024/05/22 15:03
AddOutputFilter 就是针对某一种特定后缀的文件,添加一个处理程序(管道或者拦截器)
今天配置了mac 的 include
按照如下配置设置了Apache 的 SSI 功能
- 确认加载include.so模块,将注释去掉:
LoadModule include_module libexec/apache2/mod_include.so - AddType部分去掉这两段注释:
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml - Directory目录权限里面找到
Options Indexes FollowSymLinks
增加Includes修改为:
Options Indexes FollowSymLinks Includes - 重新启动Apache,测试:
但是发现没有生效,查找原因发现我的代码使用的主页面和子页面都是 html 后缀,但是文档中配置的是 .shtml 后缀,修改后配置文件为:
AddType text/html .html
AddOutputFilter INCLUDES .html
<!--#include virtual="../mod.html" -->
测试没有问题
参考文档:
https://httpd.apache.org/docs/current/mod/mod_mime.html#addoutputfilter
http://www.jb51.net/article/26438.htm
0 0
- apache AddOutputFilter html 支持Include
- Apache下开启SSI配置,使html支持include包含
- apache支持.shtml 和 include标签
- Apache支持include文件解析shtml
- Apache支持include文件解析shtml
- apache 支持include(服务端包含配置)
- Apache下开启SSI配置使shtml支持include包含
- Apache下开启SSI配置使shtml支持include包含
- 如何让apache支持.shtml 让apache支持include标签(转)
- Apache SSI配置 动态include静态html文件
- apache配置方法-实现html,shtml文件的include命令
- Apache SSI配置 动态include静态html文件
- 让apache支持html页面嵌套
- Apache 开启SSI 支持 html inculde
- html include
- html include
- 配置apache以支持php 在apache主配置文件httpd.conf中Include自定义配置文件
- IIS7 支持html页面包含(include)html页面 IIS设置与代码编写
- 寻找旋转排序数组中的最小值 II
- MySQL命令行导出数据库
- 通过clonezilla将windows2008虚拟机从vCenter迁移至kvm
- [前端]AR及VR?
- Java中的深拷贝和浅拷贝
- apache AddOutputFilter html 支持Include
- ASP.NET反射
- redis分布锁Redisson性能测试
- 深入理解WebView
- XAMPP启动MySQL
- ios 导航栏下的视图向下偏移64的问题 表视图
- Hibernate操作Blob/Clob时,发生cannot be cast to oracle.sql.BLOB错误分析
- dd 动态(每秒)查看 速度
- 我读过的最好的epoll讲解--转自”知乎“