Forum Moderators: phranque

Message Too Old, No Replies

conditional loading module with IfDefine directive

ifdefine

         

matej148

7:32 pm on Feb 2, 2012 (gmt 0)

10+ Year Member



Hi to all!
Can please someone help me? I have this simple code in httpd.conf and it doesnt work:
<IfDefine Eva>
LoadModule evasive20_module /usr/lib/httpd/modules/mod_evasive20.so
</IfDefine>


I tried run it with:
apachectl -DEva


and also this:
apachectl -D Eva / httpd -DEva / apachecetl -DEva -k start...


but I dont see this module in modules apachectl -M.
When I try it without IfDefine directive, then I saw module between modules from apachectl -M. When I try IfDefine directive with other module in LoadModule directive, that doesnt work too.
One more question. Modules which I see in apachectl -M output are runned modules?

My OS is Linux/Fedora 15.
Thanks