Bug 198206 - patch to make default config file work when modules are commented out
Summary: patch to make default config file work when modules are commented out
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: httpd
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-10 14:22 UTC by Russell Coker
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-14 16:15:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
patch to fix this bug (3.00 KB, patch)
2006-07-10 14:22 UTC, Russell Coker
no flags Details | Diff

Description Russell Coker 2006-07-10 14:22:52 UTC
Created attachment 132178 [details]
patch to fix this bug

Comment 1 Russell Coker 2006-07-10 14:22:52 UTC
The attached patch puts <IfModule> directives around the config file 
directives that match every module that you might want to disable.

This means that to disable modules you merely have to comment the LoadModule 
directives, not hunt through the entire httpd.conf commenting things out all 
the way.

This is really handy when building a system to meet security standards 
documents specifying that all unnecessary software be disabled or removed.

Comment 2 Joe Orton 2006-12-14 16:15:12 UTC
Thanks for the suggestion and patch.

It is generally not desirable to over-use <IfModule in the default
configuration: if should be clear that if you disable modules then use of the
corresponding directives should cause a configuration error.  Otherwise, it
becomes a "silent failure" if people accidentally comment out a certain module,
which can be confusing and hard to diagnose.


Note You need to log in before you can comment on or make changes to this bug.