Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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... –  Pumbaa80 Jun 22 '12 at 6:43

Your Answer

 
discard

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.