发现包括IIS在内的大多数处理服务器,都是默认不支持shtml的,nginx支持shtml的方法为:

在nginx.conf配置文件,添加:

让Nginx支持shtml格式ssi on;
ssi_silent_errors on;
ssi_types text/shtml;

然后保存,重启nginx即可。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-12-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案