RE: Includes in IIS

by Chuck Evans <Chucke(at)captura.com>

 Date:  Wed, 16 Feb 2000 10:27:07 -0800
 To:  "'Jeffrey Cohen'" <jcohen02(at)snet.net>,
Html WritersGuild <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
The include statement is pretty straightforward. I use:

<!--#include virtual="/includes/en/includedfile.html"-->

The "virtual" means the path is relative to your web site.

The hard part, at least for IIS, is that the default extension for an HTML
page containing includes is .stm. That means that if an HTML file does NOT
have that extension, IIS won't even look in it for include statements. (.asp
files are also able to contain includes by default.)

If you want to specify the .shtml or .html extensions for includes (you
would use .html if all your pages will have includes in them, like mine do)
then I recommend going to:

http://support.microsoft.com/support/kb/articles/Q161/5/62.ASP

for instructions on setting up SSI for different extensions. Note: If in
cases where those instructions say to modify a registry key that key does
not exist, you can just create the key.

If that doesn't work for you, then you also have to go into the Internet
Service Manager and make sure the server side include dll has been
associated with the extension you desire. To do that:

1.	Start the Internet Service Manager
2.	Click on the Default Website directory
3.	Right click and select Properties
4.	Select the Home Directory tab
5.	Under Application Settings, click on Configuration
6.	Make sure the .html extension is listed as associated with
c:\WINNT\System32\inetsrv\ssinc.dll; if it is not, then:
7.	To associate .html with the ssinc.dll, click the Add button
8.	Browse to c:\WINNT\System32\inetsrv\ssinc.dll in the Executable
field
9.	Enter .html (with the dot) into the Extension field
10.	Leave the Method exclusion field blank; leave Script engine checked
and Check that file exists unchecked
11.	Click OK twice
12.	In the main Properties window, click Apply
13.	SSI should now be enabled for .html files

Hope this helps.

---------------------------------------------------------
Chuck Evans
Web Marketing Manager
Captura Software, Inc.
(425) 424-1155
chucke(at)captura.com
www.captura.com


-----Original Message-----
From: Jeffrey Cohen [mailto:jcohen02(at)snet.net]

How do I do an include???

1) What is the syntax

2) I'm runnin NT with IIS. Is there anything I need to do to enable the
server???

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.