<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Per the docs:<BR>
<BR>
<TT># Conditional configuration</TT><BR>
<TT>#</TT><BR>
<TT># If-statements can be used to make configuration directives</TT><BR>
<TT># depend on conditions:</TT><BR>
<TT>#</TT><BR>
<TT># if <CONDITION></TT><BR>
<TT># ... regular configuration directives ...</TT><BR>
<TT># [else</TT><BR>
<TT># ... regular configuration directives ...]</TT><BR>
<TT># endif</TT><BR>
<TT>#</TT><BR>
<TT># The else part is optional. The keywords "if", "else", and "endif"</TT><BR>
<TT># must be typed on their own lines, as if they were regular</TT><BR>
<TT># configuration directives.</TT><BR>
<TT>#</TT><BR>
<TT># NOTE: An else-if condition is not supported.</TT><BR>
<TT>#</TT><BR>
<TT># These individual conditions types are supported:</TT><BR>
<TT>#</TT><BR>
<TT># true</TT><BR>
<TT># Always evaluates to true.</TT><BR>
<TT># false</TT><BR>
<TT># Always evaluates to false.</TT><BR>
<TT># <integer> = <integer></TT><BR>
<TT># Equality comparison of two integer numbers.</TT><BR>
<BR>
Anyone have any examples, documentation, heck ANYTHING that can show how this works? I can't seem to find a thing besides the above. My goal is something like the below:<BR>
<BR>
if port = 80<BR>
http_access deny all<BR>
else<BR>
http_access allow all<BR>
endif<BR>
<BR>
But nothing I'm trying as the condition expression is working. Thank you.<BR>
<BR>
James
</BODY>
</HTML>