(DIR) Back to the Maz World Gopher Root
 (???) ello! If you're here, you're probably interested in setting up a gopher server, so here goes!
 (TN3) hese instructions are for setting up a gopher server on Windows.  
 (IMG) f you're looking for Unix/Linux, you're out of luck.  Try Google.
 (???) rogram Setup
 (DIR) First, you need to grab the server program.  I use gopher cannon.
 (???) xtract the zip somewhere, and then decide on a place to serve the files from.
 (IMG)  used c:\gopher\program for the program, and c:\gopher\files for the files.
 (???) ou can use the sample site to get an idea of how to write the folder indicies.
 (IMG) n general, the basic Gopher format is as follows (replace the 1 with the type specifier):
 (???) 1Name For Link<tab>Relative Path to Resource From Server Root<tab>Server Address<tab>Server Port
 (HTM) A list of object types can be found at http://en.wikipedia.org/wiki/Gopher_(protocol)
 (???) ext you need to configure the server for your machine.  Open the program.config file in Notepad
 (???) nd change the hostname to your domain name, and the root folder to where your files are.
 (???) irewall Configuration
 (???) ow you need to add an exception to your firewall.  I'll give instructions for Windows Firewall.
 (???) or any other firewall program, open up TCP port 70.
 (???) or Windows firewall, go to Control Panel and open up Windows Firewall.
 (IMG) n xp: Click on allow a program through Windows Firewall, and add TCP port 70.
 (IMG) n Vista/7: Click on advanced settings.  Under view and create firewall rules, 
 (???) lick inbound rules and add a rule for TCP port 70.
 (???) ow you should be all set to start serving Gopher!  If your computer is behind a router, or
       f you wish to install the server as a Windows Service, read on.
 (???) onfiguring Gopher Cannon for use behind a Router
 (???) og in to your router (typically http://192.168.1.1).  Your user manual may help.
 (???) ook for NAT, Port Forwarding, Virtual Server, or something similar.  Create a new rule
 (???) orwarding TCP port 70 to TCP port 70 on your server's ip address.  You can find your server's ip address
 (???) y opening command prompt, typing ipconfig hitting enter, and then scrolling up to the top to see the output.
 (???) ave your configuration and you should be good to go.
 (IMG) nstalling Gopher Cannon as a Windows Service
 (BIN) Download srvany.  It's a small program needed to run Gopher cannon as a service.
 (???) ave it to where you have the gopher program files.  Open a command prompt (in Vista/7 as administrator).
 (TN3) ype 'sc create "Gopher Cannon" binPath= "fullpathtosrvany" start= auto'(minus the single quotes) substituting
 (???) he full path to the srvany.exe file instead of fullpathtosrvany.  Hit enter.  It should tell you it  completed
 (SND) uccessfully.  Now open up the Registry Editor.  You can do so by hitting the Windows key and r.Type regedit
       n the box and hit enter.  Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Gopher Cannon.
 (???) reate a new key called Parameters.  In this new key, create a string called Application.  For the value
 (???) se the full path to the Gopher Cannon.exe file.  Close out of regedit.  Now, if you are using Windows Vista/7,
 (???) pen up the Services Control Panel.  Hit the windows key and r and type services.msc in the box and hit enter.
 (???) croll down to Interactive Services Detection, double click it and change the startup type to disabled.
 (TN3) his stops a nagging window when Gopher Cannon is running in the background.  
 (???) lick ok, reboot, and you should be golden!