httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 45139] New: Default config file does not take advantage of IfModule statements
Date Thu, 05 Jun 2008 14:36:03 GMT

           Summary: Default config file does not take advantage of IfModule
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: All


in order to save memory, I tried to strip down a default installation of Apache
2.2.3 by commenting out all the default "LoadModules" in httpd.conf. By
eliminating the one which my application doesn't need I was able to reduce the
memory foot print by 50%.

Anyhow, I found this rather complicated, because if you for example remove the
cgi-module (because nowadays you don't need CGI anymore), you'll get an error
because of this default setting far lower in the config file.

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

Another example would be that if you drop mod_autoindex, this parameter here
makes trouble IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable

Because of the so many modules, Apache offers today, I suggest to clean this up
and make it more maintainable:

All parameters, which require a module to be loaded, should be wrapped in their
appropriate <IfModule foo.c> statements.

IMHO even better would be to move all module specific options into
conf.d/foo.conf files.

E.g. their would be a file called cgi.conf, it starts with the LoadModule
statement and all options relevant to CGI. If one doesn't want CGI, one just
has to remove the entire cgi.conf file.

For sanity, it could be better to introduce a subfolder with in conf.d, e.g.
the location for the default CGI settings would than be

Would love your feedback,


Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message