The gopherd.conf file contains a list of directives that alter the behaviour of the gopherd(8) server. It is composed of lines of the form:
Tokens are case insensitive and the value field will change, depending on the token. A pound sign at the beginning of a line signifies a comment line.
Quick pseudo grammer
The following tokens are recognized
If you're using the site access system, you'll want to set the default access level *first*. All following entries inherit the default that you set. For instance, if your default is "!read,!browse,!search' and you want to turn on browse access for a certain machine you can just specify "browse", not "!read,browse,!search"
Sample gopherd.conf file
# Administrator
Admin: Bob Bagel, Turnip Postmaster and Gopher support 1-800-555-1212
AdminEmail: gopher@turnip.com
#
# Site description
#
Site: Turnip Research and Development labs
Org: Turnip Incorporated
Loc: Minneapolis, MN, USA
Geog: 44 58 48 N 93 15 49 W
Language: En_US
#
# Extension mapping
#
# Different Languages
viewext: .txt.spanish 0 0 Text Es_ES
viewext: .txt.german 0 0 Text De_DE
viewext: .txt.french 0 0 Text Fr_FR
viewext: .hqx 4 0 file/hqx
#
# Telnet file formats
#
viewext: .telnet 8 0 terminal/telnet
viewext: .tn3270 T 0 terminal/tn3270
#
# Graphics file formats
#
viewext: .gif I 9 image/gif
viewext: .pcx I 9 image/pcx
viewext: .pict I 9 image/PICT
viewext: .tiff I 9 image/TIFF
viewext: .jpg I 9 image/JPEG
viewext: .ppm I 9 image/ppm
viewext: .pgm I 9 image/pgm
viewext: .pbm I 9 image/pgm
#
# Sounds
#
viewext: .au s s audio/mulaw
viewext: .snd s s audio/mulaw
viewext: .wav s s audio/wave
#
# Movies
#
viewext: .quicktime 9 9 video/quicktime
viewext: .mpg 9 9 video/mpeg
#
# Binary files
#
viewext: .tar.Z 9 9 file/tar.Z
viewext: .tar 9 9 file/tar
viewext: .zip 5 9 file/PKzip
viewext: .zoo 5 9 file/Zoo
viewext: .arc 5 9 file/Arc
viewext: .lzh 5 9 file/Lharc
viewext: .exe 5 9 file/PCEXE
viewext: .mcb 9 9 file/MacBinary
viewext: .uu 9 9 file/uuencode
#
# Various forms of text
#
viewext: .ps 0 0 Text/postscript
viewext: .tex 0 0 Text/tex
viewext: .dvi 0 9 Text/dvi
viewext: .troff 0 0 Text/troff
viewext: .unicode 0 0 Text/unicode
viewext: .sjis 0 0 Text/sjis
viewext: .jis 0 0 Text/jis
viewext: .euc 0 0 Text/jis
viewext: .big5 0 0 Text/big-5
viewext: .rtf 0 0 Text/rtf
viewext: .word5 0 0 Text/MSWord5
viewext: .word4 0 0 Text/MSWord4
viewext: .mw 0 0 Text/MacWrite
viewext: .wp 0 0 Text/WordPerfect51
viewext: .smell 9 9 smell/funky
#
#
viewext: .mindex 7 mindex: Directory
viewext: .src 7 waissrc: Directory
viewext: .html h GET /h application/WWW
#
# Map files to certain blocks
#
blockext: .abstract ABSTRACT
blockext: .ask ASK
#
# Error message generated for non local hosts
#
Bummermsg: Sorry no access for non turnipheads.
# Don't allow anyone to read or browse us,
# anyone can search though.
access: default !browse,!read,search
#
# allow any hostname that ends with
# turnip.com to browse and read
#
access: .turnip.com browse,read
#
# Allow anyone on a class C network
# (starting with 192) to browse
#
access: 192. browse
#
# Allow anyone on the 128.101.193 network
# to read from us.
#
access: 128.101.193 read
#
# Turn off searching for these bozos
# they can't do anything
#
access: bozo.org !search