~alpine/devel

main/apache2: recompile broken suEXEC v1 PROPOSED

Steffen Lange: 1
 main/apache2: recompile broken suEXEC

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/devel/patches/1011/mbox | git am -3
Learn more about email & git

[alpine-devel] [PATCH] main/apache2: recompile broken suEXEC Export this patch

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
---