Why does this simple SSI not render the include?

63 views Asked by At

I'm trying to add ssi to a more complex project without success. I've whittled it down to the simplest possible and it still does not work. I'm obviously missing something very simple, but what?

OS: Windows 10 Pro, build 19045.2251

Server:

Server version: Apache/2.4.46 (Win64)
Apache Lounge VS16 Server built:   Oct  2 2020 11:45:39

relevant http.conf lines not commented out:

LoadModule include_module modules/mod_include.so 
LoadModule mime_module modules/mod_mime.so

http.conf contains:

...
<Directory "c:/Apache24/htdocs">
...
    Options +Includes
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
...

C:\Apache24\htdocs contents:

index.html
bogus.shtml

index.html:

<html><body>
<!--#include file="bogus.shtml"  -->
<h1>It works!</h1></body></html>

bogus.shtml:

<h4>Nothing to see here</h4>

Yet http://localhost renders only It works!

0

There are 0 answers