欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 汽车 > 维修 > Apache中使用SSI设置

Apache中使用SSI设置

2024/10/23 23:20:08 来源:https://blog.csdn.net/lgq1368853532/article/details/140287381  浏览:    关键词:Apache中使用SSI设置

先停服务在修改httpd.conf,备份下

Apache\Apache24\conf

设置httpd.conf

LoadModule ssl_module modules/mod_ssl.so 取消该命令前的注释符#

AddType text/html .shtml

AddOutputFilter INCLUDES .shtml

取消该命令前的注释符#

加入html

 AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType text/html .html
    AddOutputFilter INCLUDES .html

搜索Options Indexes FollowSymLinks改为: Options Indexes FollowSymLinks INCLUDES IncludesNOEXEC

测试

htdocs\index.html

<!-- #config timefmt="%y年%m月%d日"-->
<p>Date = <!--#echo var = "date_local" --></p>

<b>当前时间<br />
  <!--#config timefmt="%Y-%m-%d %T"-->  
  <!--#echo var="DATE_LOCAL"--><b>
            <br /><br />

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com