[HEADSUP] extracting LoadModule out of httpd.conf

Mathieu Arnold mat at FreeBSD.org
Mon Aug 15 14:56:32 UTC 2016


+--On 10 août 2016 23:07:27 +0200 Miroslav Lachman <000.fbsd at quip.cz>
wrote:
| So... LoadModule can be extracted from httpd.conf (and nothing else).
| I am not sure if it should be one file for all modules or separate files
| for each module.

Keeping them all in one file is about the same as not splitting them out of
httpd.conf, the problem is what I wrote in
<https://reviews.freebsd.org/D7460#155853>, quoting here for easier reading:

 For example, say, the user uses the official packages:

    pkg install apache24
    edit httpd.conf to enable a few extensions, like, say, ssl and
socache_shmcb
    some updates are done to apache, some more extensions are now built
with it
    pkg upgrade
    the new extensions are in not in httpd.conf, but they are in
httpd.conf.sample, so, the user will have to go look around in the sample
file (and know it exists) to get the new LoadModule lines into his
httpd.conf. This is not good.

Other example:

    pkg install mod_php56
    I uncomment the LoadModule line in httpd.conf that mod_php56 magically
added
    some time later, after php has been updated
    pkg upgrade
    the LoadModule php line is gone, or has been commented out, I'm not
happy :-)

With one LoadModule (it being commented or not) per file, using @sample,
what the user comments or uncomments never gets changed.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160815/76291940/attachment.sig>


More information about the freebsd-ports mailing list