(DIR) Back to the Maz World Gopher Root
       
       Hello! If you're here, you're probably interested in setting up a gopher server, so here goes!
       These instructions are for setting up a gopher server on Windows.  
       If you're looking for Unix/Linux, you're out of luck.  Try Google.
       
       Program Setup
       
 (DIR) First, you need to grab the server program.  I use gopher cannon.
       Extract the zip somewhere, and then decide on a place to serve the files from.
       I used c:\gopher\program for the program, and c:\gopher\files for the files.
       You can use the sample site to get an idea of how to write the folder indicies.
       In 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)
       Next you need to configure the server for your machine.  Open the program.config file in Notepad
       and change the hostname to your domain name, and the root folder to where your files are.
       
       Firewall Configuration
       Now you need to add an exception to your firewall.  I'll give instructions for Windows Firewall.
       For any other firewall program, open up TCP port 70.
       For Windows firewall, go to Control Panel and open up Windows Firewall.
       In xp: Click on allow a program through Windows Firewall, and add TCP port 70.
       In Vista/7: Click on advanced settings.  Under view and create firewall rules, 
       click inbound rules and add a rule for TCP port 70.
       
       Now you should be all set to start serving Gopher!  If your computer is behind a router, or
       if you wish to install the server as a Windows Service, read on.
       
       Configuring Gopher Cannon for use behind a Router
       Log in to your router (typically http://192.168.1.1).  Your user manual may help.
       Look for NAT, Port Forwarding, Virtual Server, or something similar.  Create a new rule
       forwarding TCP port 70 to TCP port 70 on your server's ip address.  You can find your server's ip address
       by opening command prompt, typing ipconfig hitting enter, and then scrolling up to the top to see the output.
       Save your configuration and you should be good to go.
       
       Installing Gopher Cannon as a Windows Service
 (BIN) Download srvany.  It's a small program needed to run Gopher cannon as a service.
       Save it to where you have the gopher program files.  Open a command prompt (in Vista/7 as administrator).
       Type 'sc create "Gopher Cannon" binPath= "fullpathtosrvany" start= auto'(minus the single quotes) substituting
       the full path to the srvany.exe file instead of fullpathtosrvany.  Hit enter.  It should tell you it  completed
       successfully.  Now open up the Registry Editor.  You can do so by hitting the Windows key and r.Type regedit
       in the box and hit enter.  Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Gopher Cannon.
       Create a new key called Parameters.  In this new key, create a string called Application.  For the value
       use the full path to the Gopher Cannon.exe file.  Close out of regedit.  Now, if you are using Windows Vista/7,
       open up the Services Control Panel.  Hit the windows key and r and type services.msc in the box and hit enter.
       Scroll down to Interactive Services Detection, double click it and change the startup type to disabled.
       This stops a nagging window when Gopher Cannon is running in the background.  
       Click ok, reboot, and you should be golden!