#================================================
# fhttpd.conf
# fhttpd config file
#================================================
# HTTP root directory
#
HTTPRoot /home/ftp
# honor Keep-Alive option
#
HonorKeepAlive # now works everywhere
# map /~username in HTTP to public_html directory under user's home
#
MapUserDir
UserDir public_html
# set umask to 022
#
Umask 0022
# size limits
#
MaxContentLength 262144 # 256K -- uploading anything larger requires FTP
MaxMessageSize 262144 # 256K -- nothing passes anything larger
MaxDataInQueue 1048576 # 1M
MaxDataInLogQueue 1048576 # 1M
# don't resolve names
#
NoResolve
# ports
#
HTTPPort 80
FTPPort 21
ProcessPort localhost:8000
# incoming directory for FTP
#
Inbound /incoming/*
# access control
#
AccessRealm system /etc/passwd
AccessRealm http_users /etc/passwd.http_users
AccessRights /home/ftp/private* restrict
AccessRights /home/ftp/private* http_users default
# finger redirected to script
#
PipeOutExec */fingerlocal /home/ftp/bin/finger-nohtml
AbsPipeOutExec /home/ftp/fingerlocal.html\
/home/ftp/cgi-bin/finger @localhost
# directories with executables
#
ExecMask /home/ftp/cgi-bin/*
# default header and footer
#
DefaultHeader \
Directory_$D_at_$H\
Directory_$D_at_$H
DefaultFooter
_fhttpd_at_$H
# redirection for MS Windows
# (commented out to allow access from MS Windows boxes)
#
#GetRule User-Agent EQ *MSIE* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *WebTV* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *Windows* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *Win16* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *Win32* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *Win*95* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *Win*NT* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *Microsoft* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *AIR_Mosaic* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *NetCruiser* NAMEEQ * NAME /noaccess.html
#GetRule User-Agent EQ *AOL* NAMEEQ * NAME /noaccess.html
# Windows users should be able to see images
#
#GetRule User-Agent EQ * NAMEEQ *.gif NAME
#GetRule User-Agent EQ * NAMEEQ *.xbm NAME
# directories
#
# CD-ROM
#
AbsDirType /home/ftp/cdrom _ _
# "folder" icon for directory
#
AbsDirType * _ _
# MIME types, icons in directories...
#
# filename-extension-specific
#
# HTML
#
AbsType *.html text/html _ _
Type *.html text/html _ _
Type *.htm text/html _ _
# images
#
Type *.xpm image/x-xpixmap _ _
Type *.xbm image/x-xbitmap _ _
Type *.rgb image/x-rgb _ _
Type *.ppm image/x-portable-pixmap _ _
Type *.pgm image/x-portable-graymap _ _
Type *.pbm image/x-portable-bitmap _ _
Type *.pnm image/x-portable-pixmap _ _
Type *.ras image/x-cmu-raster _ _
Type *.tiff image/tiff _ _
Type *.tif image/tiff _ _
Type *.jpeg image/jpeg _ _
Type *.jpg image/jpeg _ _
Type *.gif image/gif _ _
# text
#
Type *.doc text/plain _ _
Type *.txt text/plain _ _
Type *.rtx text/richtext _ _
# archives
#
Type *.zip application/x-zip _ _
Type *.tar application/x-tar _ _
Type *.tgz application/x-gzip _ _
Type *.taz application/x-gzip _ _
Type *.gz application/x-gzip _ _
Type *.Z application/x-compressed _ _
Type *.z application/x-compressed _ _
Type *.lha application/octet-stream _ _
Type *.hqx application/mac-binhex40 _ _
# formatted (or worse) text
#
Type *.man application/troff-man _ _
Type *.ps application/postscript _ _
Type *.eps application/postscript _ _
Type *.ai application/postscript _ _
Type *.rtf application/rtf _ _
Type *.latex application/x-latex _ _
# shell scripts
#
Type *.sh application/x-sh _ _
Type *.csh application/x-csh _ _
# foreign binaries and scripts
#
Type *.com application/octet-stream _ _
Type *.exe application/octet-stream _ _
Type *.dll application/octet-stream _ _
Type *.bat text/plain _ _
# movies
#
Type *.movie video/x-sgi-movie _ _
Type *.avi video/x-msvideo _ _
Type *.qt video/quicktime _ _
Type *.mov video/quicktime _ _
Type *.mpeg video/mpeg _ _
Type *.mpg video/mpeg _ _
Type *.mpe video/mpeg _ _
# audio
#
Type *.au audio/basic _ _
Type *.snd audio/basic _ _
Type *.wav audio/x-wav _ _
Type *.aiff audio/x-aiff _ _
Type *.aifc audio/x-aiff _ _
Type *.aif audio/x-aiff _ _
# C and C++ sources
#
Type *.c text/plain _ _
Type *.cc text/plain _ _
Type *.C text/plain _ _
Type *.CC text/plain _ _
Type *.cpp text/plain _ _
Type *.h text/plain _ _
Type *.hpp text/plain _ _
# directory-dependent, common names, ...
#
Type *README* text/plain _ _
Type *readme* text/plain _ _
Type *COPYING* text/plain _ _
Type *copying* text/plain _ _
Type *INSTALL* text/plain _ _
Type *LICENSE* text/plain _ _
Type *ChangeLog* text/plain _ _
Type *Changes* text/plain _ _
Type *Copyright* text/plain _ _
Type *.FAQ text/plain _ _
Type *.faq text/plain _ _
Type *INDEX* text/plain _ _
Type *MANIFEST text/plain _ _
Type /cgi-bin/* text/html _ _
Type *.lsm text/plain _ _
Type *.cfg text/plain _ _
Type *.conf text/plain _ _
# default
#
Type * text/plain _ _
# preloaded files
#
PreLoad - /home/ftp/file_index.html
PreLoad /icons/folder.gif /home/ftp/icons/folder.gif
PreLoad /icons/html.gif /home/ftp/icons/html.gif
PreLoad /icons/text.gif /home/ftp/icons/text.gif
PreLoad /icons/image.gif /home/ftp/icons/image.gif
# applications
#
# PHP3
# (uncomment the following lines if you have php3 compiled as fhttpd module)
#
#Application php3 - ftp 3000,30 1 *.php3 \
#/usr/local/sbin/php -s
# default application
#
Application fhttpd-file - ftp 3000,30 1 * \
/usr/local/sbin/fhttpd-file -s -u 022 -c /etc/fhttpd.conf
# log aplication
#
LogApplication log - ftp 1 1 - \
/usr/local/sbin/fhttpd-log -u 022 -c /etc/fhttpd.conf -l /tmp/fhttpd-log.log
# EOF