1. 确认加载include.so模块,将注释去掉: 
LoadModule include_module libexec/apache2/mod_include.so 

2. AddType部分去掉这两段注释: 
AddType text/html .shtml 
AddOutputFilter INCLUDES .shtml 

3. Directory目录权限里面找到 
Options Indexes FollowSymLinks 
增加Includes修改为: 
Options Indexes FollowSymLinks Includes 

4. 重新启动Apache,测试: 

<!–#include file=”head.html”–> 
Holle Word!,这是中间的内容 
<!–#include file=”foot.html”–> 

相关文章:

  • 2021-12-25
  • 2022-12-23
  • 2022-01-07
  • 2021-08-22
  • 2021-09-09
  • 2021-08-03
猜你喜欢
  • 2021-05-28
  • 2021-05-28
  • 2022-02-19
  • 2022-12-23
  • 2021-12-14
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案