title: Golang CGI on apache
body: <p>I am trying to run Golang cgi scripts through apache. I can get the files compiled and am using examples i found of how to make it, but I don't know what file extension to add to apache's "add handler" or if that is even where I should tell apache to handle the Go compiled source. Currently when you go to the cgi-bin file in a web browser you just download the Unix Executable File.
  as you can see I have tried .exe and .go neither of which I expected to work, and didn't.</p>
  
  <pre><code>&lt;Directory "/var/www/html/cgi"&gt;
      AddHandler cgi-script .cgi .py .exe .go
      AllowOverride All
      Options +Indexes +FollowSymLinks +ExecCGI
      Order allow,deny
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Also, does cgi vs cgi matter? I have been using both to see which ones work, but neither do with my current configuration.</p>