« Previous Next »

Thread: SSI not working...Help...Please???

Last post 07-06-2009 12:21 PM by campbebl. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 01-05-2009, 9:45 PM

    SSI not working...Help...Please???

    I've been knocking my head against the wall for hours trying to get this to work., but can't.

     I have a simple html file called file1.shtml. Here is what is in it.

    <html>
     <head>
      <title>This is file1.shtml</title>
     </head>
     <body>
    <!--#include file="./file2.htm" -->   
     </body>
     </html>

    file2.htm contains the following.

    <b>This is what is in file 2. </b>

    Pretty straight forward. I tried changing file extensions to .htm, .html, .shtm, .shtml all without any luck. I tried using include File instead of Include Virtual, without luck.

    The mappings in IIS 5.1 running on my computer are as follows.

    Executabe: C:\WINDOWS\system32\inetsrv\ssinc.dll
    Extension: .shtml (this also exists for .shtm extension)
    Verbs Limited to: GET, PUT
    Both Script engine and Check that file exists are checked off.

     Can anyone help figure this out? I don't see why it wouldn't work.

  • 01-06-2009, 12:03 AM In reply to

    Re: SSI not working...Help...Please???

    Above sample works fine.

    What is not working? Can you provide more info?

    Verbs Limited to: GET, POST - it should be POST and not PUT

    Can you verify?

    ~ Ganesh

  • 01-06-2009, 8:35 AM In reply to

    Re: SSI not working...Help...Please???

    When I bring up File1.shtml in the browser I don't see anything. I do a view source and see the source of File1.shtml, but I do not see File2.htm in there. It just does not include the file.

    I verified, I do have POST. I typed PUT incorrectly in my posting above.

    So, if the html is correct and the mappings in my IIS are correct, then what could be stopping it from working on my machine?

  • 01-07-2009, 1:33 PM In reply to

    Re: SSI not working...Help...Please???

    Problem solved. I was opening the webpage directly in my browser as a file instead of using http://localhost/file1.shtml. In doing this, it didn't get processed by IIS, so the includes were shown as comments. Once I used http, it worked fine. Duh!!!

  • 07-06-2009, 12:21 PM In reply to

    • campbebl
    • Not Ranked
    • Joined on 07-06-2009, 12:20 PM
    • Posts 1

    Re: SSI not working...Help...Please???

    Thanks for posting your solution ... wouldn't you know I was doing the same thing and was going crazy looking for a solution.  Thanks!

Page 1 of 1 (5 items)