#!/bin/sh #------------------------------------------------------------------------------- # /etc/config.d/apache.mailman.sh - configuration generator script for Apache # # Copyright (c) 2008 the eisfair team, team(at)eisfair(dot)org # # Creation: 26.07.2004 om # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #------------------------------------------------------------------------------- pgmname=$0 conffile=/etc/config.d/mailman tty=`tty` . $conffile exec 1>/usr/local/apache/conf/httpd.conf echo "#-------------------------------------------------------------------------------" echo "# Apache configuration file generated by $pgmname" echo "# Scripts for using Mailman" echo "# Do not edit this file, edit $conffile or $pgmname" echo "# Creation date: `date`" echo "#-------------------------------------------------------------------------------" echo echo "ScriptAlias /cgi-bin/ $MAILMAN_WEB_DIR" echo "" echo ' AllowOverride All' echo ' Options None' echo ' Order Deny,Allow' echo ' Deny from all' echo " Allow from $MALMAN_ACCESS_CONTROL" echo '' # fuer das Webarchiv echo "ScriptAlias /$MAILMAN_WEB_ARCHIVE_DIR/ /usr/local/mailman/archives/public/" echo '' echo ' AddDefaultCharset Off' echo '' echo "#-------------------------------------------------------------------------------"