X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 10EECDC040E for ; Fri, 25 Mar 2016 10:29:50 +0000 (UTC) Received: from rotersand.stelas.de (rotersand.stelas.de [84.201.4.109]) by mail.alpinelinux.org (Postfix) with ESMTP id B2876DC0389 for ; Fri, 25 Mar 2016 10:29:49 +0000 (UTC) Received: from enterprise (unknown [IPv6:2001:470:52b0:0:3a60:77ff:fe90:d76f]) by rotersand.stelas.de (Postfix) with ESMTPA id 4B5329A1; Fri, 25 Mar 2016 11:29:44 +0100 (CET) Date: Fri, 25 Mar 2016 11:24:21 +0100 From: Steffen Lange To: alpine-devel@lists.alpinelinux.org Cc: kaarle.ritvanen@datakunkku.fi Subject: [alpine-devel] [PATCH] main/apache2: recompile broken suEXEC Message-ID: <20160325112421.1dd32d2f@enterprise> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Hi, enclosed is a small patch suggestion for Apache2 package. suEXEC isn't working due to a user mismatch during compilation (http vs. apache). I'm also suggesting to lower the docroot restriction to made it easier for virtual hosting (site structure under /var/www). @Kaarle: Could you please commit my patch? Best regards, Steffen Fixed two flaws regarding suEXEC: - suEXEC compiles with correct Apache user - set docroot to /var/www - needed for virtual hosts --- main/apache2/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/apache2/APKBUILD b/main/apache2/APKBUILD index ad1288e..9a3e911 100644 --- a/main/apache2/APKBUILD +++ b/main/apache2/APKBUILD @@ -71,8 +71,8 @@ build() { --enable-layout=Alpine \ --enable-so \ --enable-suexec \ - --with-suexec-caller=http \ - --with-suexec-docroot=/var/www/localhost/htdocs \ + --with-suexec-caller=apache \ + --with-suexec-docroot=/var/www \ --with-suexec-logfile=/var/log/apache2/suexec.log \ --with-suexec-bin=/usr/sbin/suexec \ --with-suexec-uidmin=99 \ -- 2.6.6 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---