Avoid using PHP for the expired sites
authorZachary Seguin <ztseguin@csclub.uwaterloo.ca>
Wed, 1 Jun 2016 04:01:09 +0000 (00:01 -0400)
committerZachary Seguin <ztseguin@csclub.uwaterloo.ca>
Wed, 1 Jun 2016 04:01:09 +0000 (00:01 -0400)
generate-expire-config

index d647477..aa41a92 100755 (executable)
@@ -54,8 +54,8 @@ for uid in $(cat ${EXPIRED_USERS}); do
    if [ -d /users/${uid}/www ] && [[ ! ${WHITELIST} =~ ${uid} ]]; then
       echo "<Directory /users/${uid}>"
       echo "    AllowOverride None"
-      echo "    RewriteEngine On"
-      echo "    RewriteRule . ${DISABLED_PAGE} [L]"
+      echo "    Redirect 503 /"
+      echo "    ErrorDocument 503 /~sysadmin/expired/index.html"
       echo "</Directory>"
       echo ""
    fi