From owner-freebsd-ports@freebsd.org Fri Aug 12 14:54:53 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B436BB7FCC for ; Fri, 12 Aug 2016 14:54:53 +0000 (UTC) (envelope-from papowell@astart.com) Received: from astart2.astart.com (wsip-72-214-30-30.sd.sd.cox.net [72.214.30.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 53BF413D2 for ; Fri, 12 Aug 2016 14:54:52 +0000 (UTC) (envelope-from papowell@astart.com) Received: from laptop_103.private (localhost [127.0.0.1]) by astart2.astart.com (8.14.9/8.14.9) with ESMTP id u7CEW3PR023151 for ; Fri, 12 Aug 2016 07:32:03 -0700 (PDT) (envelope-from papowell@astart.com) Reply-To: papowell@astart.com Subject: Re: [HEADSUP] extracting LoadModule out of httpd.conf References: <57AB978F.3090800@quip.cz> To: freebsd-ports@freebsd.org From: Patrick Powell Organization: Astart Technologies Message-ID: <24f9dda5-35b8-e2b3-8be2-168859b73bff@astart.com> Date: Fri, 12 Aug 2016 07:32:03 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <57AB978F.3090800@quip.cz> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2016 14:54:53 -0000 On 08/10/16 14:07, Miroslav Lachman wrote: > Mathieu Arnold wrote on 08/10/2016 17:42: >> Hi, >> >> It is coming. >> >> https://reviews.freebsd.org/D7460 >> >> constructive comments welcome. >> >> I don't think I will do that for Apache 2.2 because it expires at the >> end >> of the year. > > I agree that there are problems with LoadModule lines in httpd.conf. > Because some modules add / remove or comment / uncomment lines in this > file making pkg upgrade painful. So I moved some 3rd party modules > configuration in to different included file to solve this issue. > But I am not sure I we really need to split httpd.conf in to 20, 30, > or more little files as proposed in comments in > https://reviews.freebsd.org/D7460 > I disagree with "httpd.conf never gets changed by the user" - we are > always editing httpd.conf on all our servers. For example Listen to > listen only on specified IP, ServerAdmin, CustomLog format and couple > of Included *.conf files at the end of the httpd.conf > > I cannot agree with splitting httpd.conf in to many small files. > Change like this was made for dovecot.conf (24 files in conf.d) and it > is lot of pain to find something in this mess or edit more than one > thing in one file. > > I understand that machine (scripted) editing of one big file is worse > than deleting / replacing small files but for us humans one (or a few) > files are easily editable than tens of small files. > > 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. > > Miroslav Lachman > _______________________________________________ > freebsd-ports@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > I plead with the people making this change to update apachectl to list the modules that are loaded: ># apachectl modules .... mod_perl .... And when you update mod_perl and the U&*(()*&U httpd.conf file gets mangled and the mod_perl line is removed or commented out, you now stand a fighting chance of finding this. With the change to itty-bitty files this would be even more useful. Just out of curiosity, how are you going to now deal with temporarily commenting out LoadModule entries? -- Patrick Powell Astart Technologies papowell@astart.com 1530 Jamacha Rd, Suite X Network and System San Diego, CA 92019 Consulting 858-874-6543 FAX 858-751-2435 Web: www.astart.com