在IIS上启用SSI [英] Enabling SSI on IIS

查看:792
本文介绍了在IIS上启用SSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据此页面 ,我应该能够:

<!-- #include file = "..\myfile.htm" -->

问:如何在IIS7上启用SSI?

Q: How do I enable SSI on IIS7?

编辑:
哦,我知道我的问题是什么:我正在使用VPS而且他们已经禁用了打开或关闭Windows功能。

Oh, I see what my problem is: I'm on a VPS and they have the "Turn Windows Features on or off" disabled.

推荐答案

试试这个: -

1)在IIS管理器中,转到Web服务扩展并设置服务器-side包括允许。

1) In the IIS Manager, go to "Web Service Extensions" and set server-side includes to "Allowed."

2)在IIS管理器中,展开本地计算机,右键单击网站文件夹(适用于所有站点)或右键 - 单击特定网站,然后单击属性。

2) In IIS Manager, expand the local computer, right-click the "Web Sites" folder (for all sites) or right-click a specific Web site, and click "Properties."

3)在文档选项卡中,确保index.shtml包含在默认内容页面中列表。

3) In the "Documents" tab, make sure that index.shtml is included in the default content page list.

这篇关于在IIS上启用SSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆