<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
> <channel><title>jappler.com &#187; SSI</title> <atom:link href="http://jappler.com/blog/archive/tag/ssi/feed" rel="self" type="application/rss+xml" /><link>http://jappler.com</link> <description>random and opinionated thoughts by Jennifer Zelazny</description> <lastBuildDate>Mon, 06 Feb 2012 01:49:00 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator><itunes:summary>random and opinionated thoughts by Jennifer Zelazny</itunes:summary> <itunes:author>jappler.com</itunes:author> <itunes:explicit>no</itunes:explicit> <itunes:image href="http://jappler.com/wp-content/plugins/powerpress/itunes_default.jpg" /> <itunes:subtitle>random and opinionated thoughts by Jennifer Zelazny</itunes:subtitle> <image><title>jappler.com &#187; SSI</title> <url>http://jappler.com/wp-content/plugins/powerpress/rss_default.jpg</url><link>http://jappler.com</link> </image> <item><title>mod_include to the rescue</title><link>http://jappler.com/blog/archive/2006/07/05/mod_include-to-the-rescue</link> <comments>http://jappler.com/blog/archive/2006/07/05/mod_include-to-the-rescue#comments</comments> <pubDate>Wed, 05 Jul 2006 12:03:33 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[Apache]]></category> <category><![CDATA[General]]></category> <category><![CDATA[HOWTOs]]></category> <category><![CDATA[HTML/XTML]]></category> <category><![CDATA[Web Development]]></category> <category><![CDATA[mod_include]]></category> <category><![CDATA[SSI]]></category> <guid
isPermaLink="false">http://www.jappler.com/blog/archive/2006/07/05/mod_include-to-the-rescue.php</guid> <description><![CDATA[After working with content management managements for well quite awhile now, the thought of creating more than seven (more than five, less than ten) static pages for a client makes me cringe. Why? I am spoiled by using template driven solutions. With templateing, if I need to make a header change, I change it one place and I am done with it. With using static .html pages, I have to make the change to all... <a
href="http://jappler.com/blog/archive/2006/07/05/mod_include-to-the-rescue">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>After working with content management managements for well quite awhile now, the thought of creating more than seven (more than five, less than ten) static pages for a client makes me cringe.  Why? I am spoiled by using template driven solutions.  With templateing, if I need to make a header change, I change it one place and I am done with it.  With using static .html pages, I have to make the change to all the pages.  I have grown very reliant on using find and replace, but then &#8211; because of the person I am &#8211; I have to go back and make sure everything looks right.<br
/> <br
/> I am currently wrapping up a project where I was not able to use a content management system, PHP, or any sort of database.  No, this is not 1998, this is present day.  For decisions I will not get into, this was the situation, no getting around it.  This web site has about 75 static pages and around the twentieth page I started to sweat when the client wanted a major layout change.  After emailing someone technical in the department I found out they did allow the use of Server Side Includes (SSI) by way of the <a
href="http://httpd.apache.org/docs/1.3/mod/mod_include.html">mod_include</a> module in <a
href="http://www.apache.org">Apache</a>. My life became much easier after this past weekend as I converted all the pages to be .shtml pages (needed for SSI).  By using SSI, I was able to create common files (header, footer, side links, navigation) so any changes to the common elements, and I just need to touch one file instead of all 75 pages.<br
/> <br
/> <b>What you need to use SSI on the server end:</b></p><ul><li><a
href="http://www.apache.org">Apache</a> with <a
href="http://httpd.apache.org/docs/1.3/mod/mod_include.html">mod_include</a><br
/> enabled</li><li>Apache configuration must have the proper AddType and AddHandlers set up: <code>AddType text/html .shtml</code> <code>AddHandler server-parsed .shtml</code></li><li>Apache configuration must also have the directive set up for the appropriate directorys (): <code>Options +Includes</code></li></ul><p><b>What you need to use SSI on the client/page end:</b></p><ul><li>Name all files you want to have SSI elements in them to include the .shtml extension so Apache knows to parse these files properly</li><li>Use the following syntax when you want to include a file: <code></code> when you want to &#8220;inlcude&#8221; some common code such as a header or footer.  (please see the <a
href="http://httpd.apache.org/docs/1.3/mod/mod_include.html">mod_include</a> documentation for all syntax)</li></ul><p>Apache&#8217;s mod_includes also gives you the ability to include CGI files, show modification dates, date and time, the user name who last modified the file, etc. Lesson learned: if someone approaches you about creating a &#8220;simple&#8221; static web site, look into if SSI is an option!<br
/> [tags]Apache, mod_include, SSI[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2006/07/05/mod_include-to-the-rescue/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
