<IfModule> filename vs. module id

Posted by Pumbaa80 on Server Fault See other posts from Server Fault or by Pumbaa80
Published on 2012-06-21T19:30:09Z Indexed on 2012/06/21 21:17 UTC
Read the original article Hit count: 123

Filed under:
|

The Apache documentation on IfModule states

The module name argument is the file name of the module, at the time it was compiled. For example, mod_rewrite.c. ...

However, Apache 2.2 seems to accept the module id too. So, these both work:

<IfModule mod_filter.c>

and

<IfModule filter_module>

Is that true for all Apache versions? Should the first version be prefered or does the second yield any benefits?

I'm asking because HTML5 boilerplate uses the module id instead of the filename

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess