wiki:TewiDirectiveBeginIf

Version 8 (modified by Nishi, on Sep 26, 2024 at 4:28:14 AM) ( diff )

--

BeginIf / EndIf

Encloses directives that will be processed only if a test is true at startup. This is equivalent to httpd's IfDefined

BeginIf Defined test
    ForceLog "defined"
EndIf
BeginIf True
    ForceLog "always parsed"
EndIf
BeginIf False
    ForceLog "this will never be parsed"
EndIf

BeginIfNot / EndIf

Same as above for false values. This is equivalent to httpd's IfDefined !parameter-name

BeginIfNot Defined test
   ForceLog "not defined"
EndIf

Notes on defined names

HAS_CHROOT gets defined if Tewi HTTPd was built with chroot(2) support.

Note: See TracWiki for help on using the wiki.