#!/bin/sh # Name of your apache access log file. Assumes a log rotation # scheme is being used like Debian's default LOG=/var/log/apache-ssl/ftp.parisc-linux.org-access.log # A GET /a/b/c request in access.log must be matched with # the actual file to determine the file size. This path is computed # as $BASEDIR/a/b/c BASEDIR=~ftp # BASEDIR=/var/www # A command which sends your FTP (wu and proftpd tested) log to stdout # Set this to nothing to disable this feature. If you use it, you'll # probably also need to change "/extra/ftp" to whatever is the prefix # on file names in your ftp logs XFERLOG="sudo /usr/local/sbin/xferlog" case "$QUERY_STRING" in *showscript*) echo "content-type: text/plain" echo cat $SCRIPT_FILENAME exit ;; ?*) OIFS="$IFS"; IFS='&'; set -- $QUERY_STRING; IFS="$OIFS" while [ $# != 0 ] do grepfor="$grepfor -e $1" shift 1 done ;; esac default() { TMP=/tmp/9.$$ echo content-type: text/html echo echo ' ISO Downloads ' echo '' echo '

ISO Downloads

' echo '