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