I am running apache v2.4 on Ubuntu 14.04 and have containers/directives this format
<IfModule mpm_prefork_module> # ... </IfModule> However I often see modules referenced in apache official documentation and in stackexchange sites this way:
<IfModule prefork.c> # ... </IfModule> Ive searched alot, including here - http://httpd.apache.org/docs/2.4/mod/core.html#ifmodule and Im unable to find what the difference is and when one is supposed to be used over the other?
Take the rewrite module for example
From the apache documentation: ifmodule directive
The module argument can be either the module identifier or the file name of the module, at the time it was compiled.
For example, rewrite_module is the identifier and mod_rewrite.c is the file name.
And its very common to see this in .htaccess files
<IfModule mod_rewrite.c> # .... </IfModule> Ive grep'ed my /etc/apache2 directory and "mod_rewrite.c" isn't defined anywhere.
On my machine the file /etc/apache2/mods-available/rewrite.load
contains:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so so is mod_rewrite.c a reference to a windows/other file? in which case referring to it on a linux machine would be incorrect syntax?