Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>


<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

share|improve this question
up vote 1 down vote accepted

Apache 2.2 introduced the use of the module identifier as an option. See the documentation for 2.2.

share|improve this answer
Oh, how could I miss that... – user123444555621 Jun 22 '12 at 6:43
@ShaneMadden: that link actually states it got introduced with 2.1 and later. But perhaps it changed since you wrote this answer. – 0xC0000022L Apr 15 at 12:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.