如何让apache支持.shtml 让apache支持include标签

第一步,修改httpd.conf文件中,增加文件后缀
AddType   text/html   .shtml  
AddHandler   server-parsed   .shtml  

第二步:继续修改,增加options属性

  <Directory   />  
          Options   FollowSymLinks   MultiViews   Includes  
          AllowOverride   None  
          Allow   from   all  
  </Directory>  

很简单的两个步骤...略微记录下...

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-06-08
  • 2021-12-02
  • 2021-10-10
相关资源
相似解决方案