介绍一下shtml和shtm
关于shtml,shtml是一种基于SSI技术的文件,也就是Server Side Include--SSI 服务器端包含指令,一些Web Server如果有SSI功能的话就会对shtml文件特殊招待,服务器会先扫一次shtml文件看没有特殊的SSI指令存在,如果有的话就按Web Server设定规则解释SSI指令,解释完后跟一般html一起调去客户端。 关于shtm,shtm与shtml的关系和htm与html的关系大致相似,这里就不多说了。 html或htm与shtml或shtm的关系是什么 html或者htm是一种静态的页面格式,也就是说不需要服务器解析其中的脚本,或者说里面没有服务器端执行的脚本,而shtml或者shtm 由于它基于SSI技术,当有服务器端可执行脚本时被当作一种动态编程语言来看待,就如asp、jsp或者php一样。当shtml或者shtm中不包含服务器端可执行脚本时其作用和html或者htm是一样的。 如何使你的Apache服务器支持SSI? Apache默认是不支持SSI的,需要我们更改httpd.conf来进行配置。我这里以windows平台的Apache 2.0.x为例,打开conf目录下的httpd.conf文件,搜索“AddType text/html .shtml”,搜索结果:
# AddType text/html .shtml
# AddOutputFilter INCLUDES .shtml
把这两行前面的#去掉。
然后搜索“Options Indexes FollowSymLinks”
在搜索到的那一行后面添加“ Includes”
即将该行改变为 Options Indexes FollowSymLinks Includes
保存httpd.conf,重起apache即可。
详细解决方案
让apache支持shtml 资料,aphache shtml
热度:639 发布时间:2012-09-10 11:02:32.0
相关解决方案
- apache-tomcat-7.0.32下的html页面不能访问有关问题
- org.apache.xerces.impl.msg.XMLMessages not loaded解决方案
- org.apache.http.client.HttpClient与org.apache.commons.httpclient.HttpClient的差别
- org.apache.axis.client.Service的有关问题
- myeclipse集成tomcat之后,启动tomcat,一直处在Starting Servlet Engine: Apache Tomcat/6.0.14,该如何解决
- 软件 apache-tomcat(这是一个文件)跟 单独下载apache 和 tomcat有什么区别 ?该如何处理
- Apache Synapse ESB 怎么使用
- org.apache.tools.zip.ZipOutputStream 压缩后可否按添加顺序
- org.apache.tools.zip.ZipOutputStream 压缩后可不可以按添加顺序
- Apache CGI 两问,该如何解决
- apache tomcat启动有关问题,跟大家探讨一上
- apache+tomcat配置url rewrite 的怪有关问题
- apache tomcat 整合有关问题
- apache+tomcat负载均衡与集群性能疑问解决办法
- apache commons包中的bag和双向地图
- Apache+Tomcat+Proxy集群要领
- 建好一个基于 Apache 的SVN服务器后,第一次怎么将源代码放在服务器下
- apache+svn配备,passwd文件需另配
- apache 和tomcat 的站点搭建???
- JSP [Class org.apache.commons.logging.LogFactory not found in import] ...
- "login.jsp": java.lang.NoClassDefFoundError: org/apache/jasper/Js ...
- import org.apache.stryts.action.Action
- org.apache.jasper.JasperException: Unsupported encoding: GB2312
- apache tomcat 路径如何设置?
- The full stack trace of the root cause is available in the Apache Tomc ...
- jsp环境搭配,apache+tomcat+mysql的环境~
- org.apache.commons.dbcp.BasicDataSource;
- 运行jsp项目出现The Apache Tomcat Native library not found错误应该怎么修 ...
- Apache CGI 两问,该怎么解决
- 求:php 连接 MSSQL2008 代码,以及异常解答。 Win2008:Apache+php5.3.2 VC9 TS+MSSQL2008