Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Installing SSI mod_include

Installing SSI mod_include

Installing SSI mod_include

Hi All,

Apologies should read SSI mod_include

I understand I need to install the include module for Apache 2.2 in order to process my included pages like:

<!--#include virtual="something.html" -->

However, I do not know if there are additional apache files that need to be downloaded, where they should be stored or how to configure the apache httpd.conf.

Additionally, is there anything else I would need to make sure this feature works correctly?

Please note I am running everything locally.

Many thanks

RE: Installing SSI mod_include

After hours of searching I found the informative ricocheting.com

see http://www.ricocheting.com/how-to-install-on-windows/apache

Here it is clearly explained how to configure Apache on windows to parse html and shtml with the include module.

First: ensure mod_include.so is included in the apache/.../modules folder.

Then edit the following lines in the httpd.conf (remember to backup the original httpd.conf, just in case)

remove # on line
#LoadModule include_module modules/mod_include.so
to read
LoadModule include_module modules/mod_include.so

This will add the mod_include.so to the apache configuration

Then edit the line
Options Indexes FollowSymLinks
to read
Options Indexes FollowSymLinks Includes

to enable Includes

Then remove # from lines
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
to read
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Save httpd.conf and restart apache

It may be overkill, just bad design on my part or just not needed , but I want Apache to parse html, shtml and htm documents referenced by the #include statement, so I have added the following lines in my httpd.conf

    AddType text/html .html
    AddOutputFilter INCLUDES .html
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    AddType text/html .htm
    AddOutputFilter INCLUDES .htm

Many thanks ricocheting.com

RE: Installing SSI mod_include

Welcome to Tek Tips!

By the way. thank you for posting the solution that you found.  It might help someone else in the future.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close