From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QNlcO-0004Xn-Du for garchives@archives.gentoo.org; Sat, 21 May 2011 12:49:20 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C7C811C056; Sat, 21 May 2011 12:47:12 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 7C9CC1C056 for ; Sat, 21 May 2011 12:47:12 +0000 (UTC) Received: by wwj40 with SMTP id 40so4374364wwj.10 for ; Sat, 21 May 2011 05:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id; bh=BNoPUZZKqgZ5/9AfHzCleC4u/moOU/iZgJQM85r3N1s=; b=hkUh12qCgT+RbLT/ajdk8e9TpU+Tp32BDMeCrGC9AIr7HCFJedp2f7l4NR1iEtFkjd kt5OZi3fCp3RqXvuDFH/KOddR0c1ac8egdrIxGVpZORUG0A22dcAfj1s+RH3iqrpHLZ3 1cq0s6Ee8TLFGv6KSDezPxkN6NC/wJJANC+yo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=JJkzk3FZXAML+AlSxekM6mdZ4pPtGK2i/i+ecpp74jx8Nrx7t332Hq5pnzFKQ5xeMO lqgKFrYWJFErkmS02zAp5kDvjnz6cQG1yBlQTvXxPpVPk065PqaqNaEB2RjowDCFyy+b yvuCtvU7ithqoGzhTQCbArWgiHJG1d8RrUMQ8= Received: by 10.227.174.79 with SMTP id s15mr580907wbz.76.1305982031552; Sat, 21 May 2011 05:47:11 -0700 (PDT) Received: from nazgul.localnet (196-215-114-244.dynamic.isadsl.co.za [196.215.114.244]) by mx.google.com with ESMTPS id k12sm2601876wby.16.2011.05.21.05.47.09 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 May 2011 05:47:10 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How can I disable some apache modules? Date: Sat, 21 May 2011 14:46:22 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.38-ck-r1; KDE/4.6.3; x86_64; ; ) References: <4DD7B16B.4070504@gmail.com> In-Reply-To: <4DD7B16B.4070504@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201105211446.22472.alan.mckinnon@gmail.com> X-Archives-Salt: X-Archives-Hash: 5744dc6975a48ae7f1307586a78c2853 Apparently, though unproven, at 14:34 on Saturday 21 May 2011, Jarry did opine thusly: > Hi, > I'd like to disable some apache modules (mod_autoindex and > mod_userdir). I checked /etc/apache2/httpd.conf, but it says > > # GENTOO: Automatically defined based on APACHE2_MODULES > # USE_EXPAND variable. > # Do not change manually, it will be overwritten on upgrade. > > OK, when this is not recommended way, I tried to set it up > in /etc/make.conf: > > APACHE2_MODULES="${APACHE2_MODULES} -autoindex -userdir" > > But when I try re-emerge apache, I get a lot of errors like this: > > Invalid '-' operator in non-incremental variable 'APACHE2_MODULES': > '-autoindex' > > So how can I control which apache modules are build and loaded? > > Jarry APACHE2_MODULES is non-incremental (the output message says so right there) which means you can't take stuff out. You can only prevent it ever going in: Remove the things you don't want from APACHE2_MODULES in /etc/make.conf -- alan dot mckinnon at gmail dot com