https://issues.apache.org/bugzilla/show_bug.cgi?id=45139

           Summary: Default config file does not take advantage of IfModule
                    statements
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: All
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Hi,

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
/conf.d/modules/cgi.conf 


Would love your feedback,


Thomas


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to