Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: hybridgoomba (170.177.41.---)
Date: October 22, 2009 05:38PM

By SSI I am referring to the type normally associated with .shtml files and using the <!-- #file include="File.txt" --> code to include the file. I'm not talking about the <?php include="file.php"; ?> method.

Any help is appreciated, last time I went mucking around in the http.conf file I pretty much stalled WAMP and had to reinstall. Thanks!

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: toumimi (---.223.115-78.rev.gaoland.net)
Date: October 22, 2009 06:58PM

Left click on wamp icon -> Apache -> Apache modules -> ssl_module

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: hybridgoomba (---.ph.ph.cox.net)
Date: October 22, 2009 09:23PM

I said SSI, not SSL.

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 22, 2009 09:29PM

it uses include_module which is activated in wamp
you also need to take these steps


To permit SSI on your server, you must have mod_include installed and enabled(Wamp has). Additionally, you must have the following directive either in your httpd.conf file, or in a .htaccess file:

Options +Includes
This tells Apache that you want to permit files to be parsed for SSI directives. Note that most configurations contain multiple Options directives that can override each other. You will probably need to apply the Options to the specific directory where you want SSI enabled in order to assure that it gets evaluated last.

Not just any file is parsed for SSI directives. You have to tell Apache which files should be parsed. There are two ways to do this. You can tell Apache to parse any file with a particular file extension, such as .shtml, with the following directives:

AddType text/html .shtml
AddHandler server-parsed .shtml

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: hybridgoomba (---.ph.ph.cox.net)
Date: October 22, 2009 09:32PM

So I would just enter those 3 into the bottom of my httpd.conf file, or do I need to put them somewhere in specific?

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 22, 2009 09:36PM

about line 218 ul see

options followsymlinks




add the options line below this



At line 404 ul see a section for ssi

add the other two lines there. they are probably there , just commented out with a #

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: hybridgoomba (---.ph.ph.cox.net)
Date: October 22, 2009 09:45PM

Awesome Steve, thanks. Looks like it's all working now!

Options: ReplyQuote
Re: Standard method for enabling SSI(Server Side Includes) in WAMP?
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: October 22, 2009 09:48PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.