Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

thorby (Programmer) (OP)
18 Feb 11 15:05
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
Martin
Helpful Member!  thorby (Programmer) (OP)
19 Feb 11 8:48
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
Noway2 (Programmer)
21 Feb 11 9:09
Welcome to Tek Tips!

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

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!

Back To Forum

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