On Tuesday 23 August 2005 17:38, Garret Rumohr wrote:
Hi Carl, in your .conf do you have a line to tell it to parse .shtml? it should be something like AddHandler server-parsed .shtml
And most of the include statements I've seen have been <!--#include virtual="foobar.html"-->
If that doesnt get it, you can find more info in the Apache documentation - http://httpd.apache.org/docs/2.0/howto/ssi.html
-Garret
Carl Hartung
08/23/05 12:10 PM >>>
Hi Garret, Hi Everybody, and thanks to Ian and jdd for their earlier replies. For the benefit of others who might stumble over this problem in the future... Page 503 in the (9.3) Admin Guide under "Server-Side Includes" needs to be updated. It states: "... Alternatively, explicitly specify the file type to search for SSIs. This can be done with the following instruction: AddType text/html .shtml AddHandler server-parsed .shtml ... In SUSE LINUX, these two directives are already included in the configuration files, so normally no changes are necessary." The documentation is wrong on two counts: Manual editing of the configuration files *is* necessary, and, the second directive shown in the example has been superceded. To enable Server-Side Includes: ==================== 1) Edit /etc/apache2/mod_mime-defaults.conf as follows: Remove the hash marks (#) from these two lines: #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml 2) Add "+Includes" to the Options line in /etc/apache2/mod_userdir.conf as follows: Before: Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec After: Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec +Includes (Thanks Ian!) 3) Don't neglect to run "rcapache2 restart" after editing these files. HTH others & regards to all, - Carl