I've seen the KB article here (http://www.directadmin.com/features.php?id=430) regarding if-then-else statements in templates. What I'm not clear about is if there is any support for AND operators, like:
In my limited testing it doesn't appear to like the above format. Also, what about nested if-then statements? It doesn't seem to like them either in my testing, but I haven't been very thorough yet so it could have been a combination of other factors causing it to fail.
Finally, a really nice feature would be to have the option to preview the resultant httpd.conf files generated by the templates BEFORE making them live (and maybe even have apache check them for syntax errors?).
Code:
|*if DOMAIN="example.com" AND SUB="webmail"|
Code for webmail.example.com
|*endif|
In my limited testing it doesn't appear to like the above format. Also, what about nested if-then statements? It doesn't seem to like them either in my testing, but I haven't been very thorough yet so it could have been a combination of other factors causing it to fail.
Finally, a really nice feature would be to have the option to preview the resultant httpd.conf files generated by the templates BEFORE making them live (and maybe even have apache check them for syntax errors?).