Configure suexec
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 8 Sep 2012 05:59:48 +0000 (01:59 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 8 Sep 2012 05:59:48 +0000 (01:59 -0400)
Setting suexec root to /afs/hcoop.net/user for now since it seems
reasonable, but I'm not not sure it's right.

debian/hcoop-apache2-config.install
debian/rules
files/www-data.hcoop [new file with mode: 0644]

index aeecd1f..7fba822 100644 (file)
@@ -1,3 +1,4 @@
 files/conf.d/* etc/apache2/conf.d
 files/apache_in.rules etc/ferm/service.in.d
-files/apache_out.rules etc/ferm/service.out.d
\ No newline at end of file
+files/apache_out.rules etc/ferm/service.out.d
+files/www-data.hcoop etc/apache2/suexec
\ No newline at end of file
index 2ec8094..5a0ef02 100755 (executable)
@@ -9,6 +9,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+DEB_DIVERT_EXTENSION =.hcoop
+DEB_DIVERT_FILES_hcoop-apache2-config += \
+       /etc/apache2/suexec/www-data.hcoop
+
 DEB_DH_INSTALL_CRON_ARGS_DEFAULT = --name=hcoop-apache-sync-logs
 
 include /usr/share/cdbs/1/rules/debhelper.mk
diff --git a/files/www-data.hcoop b/files/www-data.hcoop
new file mode 100644 (file)
index 0000000..f2a2995
--- /dev/null
@@ -0,0 +1,7 @@
+/afs/hcoop.net/user
+public_html/cgi-bin
+# The first two lines contain the suexec document root and the suexec userdir
+# suffix. If one of them is disabled by prepending a # character, suexec will
+# refuse the corresponding type of request. 
+# This config file is only used by the apache2-suexec-custom package. See the
+# suexec man page included in the package for more details.