发现包括IIS在内的大多数处理服务器,都是默认不支持shtml的,nginx支持shtml的方法为:
在nginx.conf配置文件,添加:
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
然后保存,重启nginx即可。
发现包括IIS在内的大多数处理服务器,都是默认不支持shtml的,nginx支持shtml的方法为:
在nginx.conf配置文件,添加:
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
然后保存,重启nginx即可。
转载地址:http://www.jb51.net/article/26438.htm
做项目时,生成的.shtml格式的静态网页无法再ie显示原因:注册表没有没有注册.shtml解决方法:把下面代码导入进去就行了Windows Registry Editor Version
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M