zoukankan      html  css  js  c++  java
  • Apache 配置SSI速记

    1. 启用模块 httpd.conf
    LoadModule filter_module modules/mod_filter.so

    2. <Directory 的Options配置中增加Includes

    Options +Includes

    3. 增加 .shtml文档类型,并设置INCLUDES

    AddType text/html .shtml

    AddOutputFilter INCLUDES .shtml

    4. 第3步是需要重命名文件的,也就是说只有以.shtml结尾的文件中的include等指令才会被apache处理,如果不想重命名,可以设置XBitHack

    XBitHack on

    chmod +x pagename.html

    设置了第4步,就不需要设置第3步,就是只要有了执行权限的文件中的include等指令都会被apache处理

    一般包含文件指令

    <!--#include file="ssi_top_head.php" -->

    附apache ssi官方文档:

    http://httpd.apache.org/docs/2.2/howto/ssi.html

  • 相关阅读:
    linux
    网络编址
    抽象类 接口
    mysql
    java
    [lyu]Mysql解压版安装教程
    Mysql出现拒绝本地账户访问的情况副本
    js
    Redis限流和GeoHash
    布隆过滤器
  • 原文地址:https://www.cnblogs.com/yjken/p/3921798.html
Copyright © 2011-2022 走看看