I added the following to the Apache config file. It may be
apache.conf or http.conf, depending on what version of Apache you are using. Be sure
to edit the correct file. HINT: if you change the .conf file and find it has no
effect, perhaps you aren't changing the correct file. Search for this first. It may
already be there.
AddType text/x-server-parsed-html .shtml
Then I created the following file within the website:
$ more testssi.shtml
<html>
<body>
<!--#include file="testssi.inc"-->
</body>
</html>
Then, I created this file:
$ more testssi.inc
hi mom
When you browse to the file testssi.html, you should see "hi mom". If
you don't, try the next section which might show you where you went wrong. |