【问题标题】:trying to use shtml, not working尝试使用 shtml,不工作
【发布时间】:2016-11-22 21:54:01
【问题描述】:

我已包含“包含”和“AddType text/html .shtml” AddOutputFilter INCLUDES .shtml" 到我的 httpd.conf 文件标签中,并在我的 shtml 文件中写了<!--#echo var="DATE_LOCAL" -->,但是当我运行它时,日期没有显示出来。有什么想法吗?谢谢。

这是在我的 Apache Web 服务器文件夹中的 conf 文件目录标记中:

Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Require all granted
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

【问题讨论】:

    标签: html apache ssi shtml


    【解决方案1】:

    对于可能遇到相同问题的任何人,我的问题与设置过程没有任何关系,我上面所做的事情是必要的并且很好。我只是通过“file://”查看页面,非常愚蠢的错误。通过http://localhost 查看时(当然)有效。

    【讨论】:

      猜你喜欢
      • 2017-10-22
      • 1970-01-01
      • 2020-08-27
      • 1970-01-01
      • 2013-05-30
      • 2022-01-17
      • 2017-03-11
      • 2019-01-29
      • 2019-01-21
      相关资源
      最近更新 更多