I am moving a couple of web site from an external host to our internal windows 2000 sbs. I noticed that none of my #include features work anymore and I am wondering if there is something I need to set up in the IIS web properties to allow this.
I am not sure what you mean by features...Basically I have a left side menu and footer which are the same per each page and written into the html with #include. Worked fine on the outside host server, but our newly installed SBS doesn't recognize and include the menu. How do I set up server side scripting on it including #include and also, cgi.
SSI normally runs on Apache, right? And some others too I presume?
Just a guess as I have never done this and don't know if you can but can you create a .htaccess file, then tell the server to parse the documents for SSI, check here for details:
Thanks for the advice guys, but I figured it out. I need to add the extension .html to the list of executable extensions under the configuration tab and then point it to a file ssinc.dll in the System32/Inetsrv folder.
Does this mean your server will parse all .html documents?
I presume then you will use .htm for all other documents cos getting the server to parse ALL docs is not a good idea. AFAIK.
Just 2cents
Not sure what you mean cian...all webpages on the site have the same menu and header which need to be called through the #include command. There are only about 30 pages on the whole site. I guess I am just not sure what you are referring to..I'm not that familiar with it.
The FAQ Wullie posted explains it very well but basically:
Any document using SSIncludes needs to be processed by a server.
If ALL documents are processed by the server then it makes the server have to work very hard to do this. Only files which need to be processed should actually be processed.
Example, my server processes files with the standard .shtml and only these files. Which means my 30-40 other documents with a .htm extension will not get processed and therefore it puts less strain on the server.
If all your 30 pages uses SSI then they will need to be parsed. But if you have an additional 10-20-30 documents which don't need to be parsed then you should separate them by using a different extension.
By "other documents" you mean pages on the defined website, correct. Not something stupid like all files onthe entire machine? That sounds dumb to ask, but just want to be sure.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.