From owner-freebsd-questions@FreeBSD.ORG Fri Sep 11 07:12:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CE791065670 for ; Fri, 11 Sep 2009 07:12:29 +0000 (UTC) (envelope-from gaz@gbmail.biz) Received: from mk-filter-4-a-1.mail.uk.tiscali.com (mk-filter-4-a-1.mail.uk.tiscali.com [212.74.100.55]) by mx1.freebsd.org (Postfix) with ESMTP id DFC2D8FC08 for ; Fri, 11 Sep 2009 07:12:28 +0000 (UTC) X-Trace: 256684113/mk-filter-4.mail.uk.tiscali.com/B2C/$b2c-TRUSTED/b2c-IMPLICITLY_TRUSTED/212.74.112.53/None/gaz@gbmail.biz X-SBRS: None X-RemoteIP: 212.74.112.53 X-IP-MAIL-FROM: gaz@gbmail.biz X-SMTP-AUTH: X-MUA: Thunderbird 2.0.0.22 (X11/20090608) X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkkCANuNqUrUSnA1/2dsb2JhbAAIgh4wGQyXJ8JyhBgFhEQ X-IronPort-AV: E=Sophos;i="4.44,369,1249254000"; d="scan'208,217";a="256684113" Received: from e1-1.ns500-1.ts.milt.as9105.net (HELO [10.44.30.101]) ([212.74.112.53]) by smtp.tiscali.co.uk with ESMTP; 11 Sep 2009 07:43:01 +0100 Message-ID: <4AA9F174.3060607@gbmail.biz> Date: Fri, 11 Sep 2009 07:43:00 +0100 From: Gareth Brown User-Agent: Thunderbird 2.0.0.22 (X11/20090608) To: John Almberg References: <4AA9BCF0.6040003@identry.com> In-Reply-To: <4AA9BCF0.6040003@identry.com> Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: reducing size of apache instances X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 07:12:29 -0000 Here's a few you can disable: mod_status, mod_info (both give extra unnecessary info about server) and mod_include (allows include statements in html files). These aren't recommended anyway unless you really need them as they create some level of security concern. mod_userdir is only needed if you are allowing users to have webpages from home directories mod_ssl, only if you're going to use ssl mod_rewrite only if you will be rewriting webpage names to something else mod_auth_basic and mod_auth_digest only if you're going to add http authentication to any of your webpages John Almberg wrote: My Apache 2.2 instances are running about 18 Meg each. I've been thinking about doing something to trim these down, and I think tomorrow is the day to take action. They are getting out of hand. I've done a bit of research on this. I think the way to get started is to eliminate unused modules. Problem is, I know which ones I need, since I purposefully added them. I *don't* know which ones I don't need, if you see what I mean, since I inherited them from the default configuration. I assume that some are critical to the basic operation of Apache. I am hoping I can google a list of these tomorrow. Obviously these I'll have to live with. But what about the set that is left after I remove the ones the system needs, and the ones I need? How do I know which ones I can safely turn off? All I can think of is a trial and error process (i.e., turn them off one by one and see if anything breaks.) Is there a better way? -- John _______________________________________________ [1]freebsd-questions@freebsd.org mailing list [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [3]"freebsd-questions-unsubscribe@freebsd.org" References 1. mailto:freebsd-questions@freebsd.org 2. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 3. mailto:freebsd-questions-unsubscribe@freebsd.org