windows server 2008配置SSI

什么是shtml呢?

使用SSI(Server Side Include)的html文件扩展名,SSI(Server Side Include),通常称为"服务器端嵌入"或者叫"服务器端包含",是一种类似于ASP的基于服务器的网页制作技术。默认扩展名是 .stm、.shtm 和 .shtml。

 

什么是SSI?

SSI是英文Server Side Includes的缩写,翻译成中文就是服务器端包含的意思。从技术角度上说,SSI就是在HTML文件中,可以通过注释行调用的命令或指针。SSI具有 强大的功能,只要使用一条简单的SSI命令就可以实现整个网站的内容更新,时间和日期的动态显示,以及执行shell和CGI脚本程序等复杂的功能。 网站维护常常碰到的一个问题是,网站的结构已经固定,却为了更新一点内容而不得不重做一大批网页。SSI提供了一种简单、有效的方法来解决这一问题,它将 一个网站的基本结构放在几个简单的HTML文件中(模板),以后我们要做的只是将文本传到服务器,让程序按照模板自动生成网页,从而使管理大型网站变得容易。

With IIS7.0, you need to add a handle Mapping(ServerSideIncludeModule) for the extension of the calling page.

 

Since the HTML page uses #include SSI directive worked on IIS5 and 6, the .html extension must has been mapped to ssinc.dll .  With IIS7.0, we still need to add mapping for the .html extension(IIS Manager->Handle Mappings->Add Module Mapping…->Choose ServerSideIncludeModule and don’t specify the Executable

Windows Server 2008 or Windows Server 2008 R2

1.On the taskbar, click Start, point to Administrative Tools, and then click Server Manager.

2. In the Server Manager hierarchy pane, expand Roles, and then click Web Server (IIS).

3. In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services.

4. On the Select Role Services page of the Add Role Services Wizard, select Server Side Includes, and then click Next.


 

On the Confirm Installation Selections page, click Install.

On the Results page, click Close.

 

接下来:还要配置一下IIS 7

 

添加模块映射 *shtml   模块 ServerSideIncludeModule  ,在iis 7中不需要设置可执行文件路径(ssinc.dll),比较蛋疼

 

 

 

windows server 2003

windows 2003 2003默认已经支持SSI(shtml文件),只需要在IIs的"web服务扩展"里设置在服务器的包含文件为"允许"即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值