Greg's Blog

helping me remember what I figure out

Conditional Directives

| Comments

Our sys admin has shown me how to create conditional statements in your httpd.cong config file. The <IfModule> directive carries out a test to see if a specified module is included in Apache. You can either do: [code] JRunConfig Serverstore \ /u2/cfmx_61/jrun4/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51020 [/code] Which processes the directives if the module is loaded. Or you can also do: [code] LoadModule jrun_module “{Install path}JRun4/lib/wsconfig/1/mod_jrun20.so” JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore “{Install path}/JRun4/lib/wsconfig/1/jrunserver.store” JRunConfig Bootstrap 127.0.0.1:51020 #JRunConfig Errorurl <optionally redirect to this URL on errors> AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc [/code] Which results in the JRun module to be loaded if the module was not previously loaded. And you can see that you can also nest these conditional statements.