home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Apache The Definitive Guide, 3rd EditionApache: The Definitive GuideSearch this book

14.6. Apache v2: SSI Filters

Apache v2, with its filter mechanism, introduced some new SSI directives:

SSIErrorMsg

SSIErrorMsg message 
Default: SSIErrorMsg "[an error occurred while processing this directive]" 
Context: Server config, virtual host, directory, .htaccess 

The SSIErrorMsg directive changes the error message displayed when mod_include encounters an error. For production servers you may consider changing the default error message to "<!-- Error -->" so that the message is not presented to the user. This directive has the same effect as the <!--#config errmsg="message" --> element.

Example

SSIErrorMsg "<!-- Error -->"  
SSITimeFormat

SSITimeFormat formatstring 
Default: SSITimeFormat "%A, %d-%b-%Y %H:%M:%S %Z" 
Context: Server config, virtual host, directory, .htaccess 

This directive changes the format in which date strings are displayed when echoing DATE environment variables. The formatstring is as in strftime(3) from the C standard library.

This directive has the same effect as the <!--#config timefmt="formatstring" --> element.

Example

SSITimeFormat "%R, %B %d, %Y"  

The previous directive would cause times to be displayed in the format "22:26, June 14, 2002".

SSIUndefinedEcho

SSIUndefinedEcho tag 
Default: SSIUndefinedEcho "<! --  undef  --
>" 
Context: Server config, virtual host 

This directive changes the string that mod_include displays when a variable is not set and "echoed."

Example

SSIUndefinedEcho "[ No Value ]"  


Library Navigation Links

Copyright © 2003 O'Reilly & Associates. All rights reserved.