title: apache ScriptAlias cgi-bin directory
body: <p>this has been a problem for me for days and I haven't been able to solve it.</p>
  <p>I'm working on fedora 14 and using Apache/2.2.17 (Unix)</p>
  <p>the document root is <code>/var/www</code> and it is well configured in my <code>httpd.conf</code></p>
  <p>I have several folders inside <code>/var/www</code> that have perl files that require CGI to be run and instead, sometimes the perl file is offered as download and sometimes an error 500 appears</p>
  <blockquote>
  <p>Internal Server Error</p>
  <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p>
  <p>Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p>
  <p>More information about this error may be available in the server error log.</p>
  </blockquote>
  <p>the cgi_module is being loaded and even if I use ScriptAlias, and the directory tag, the file is still not being ran a script.</p>
  <p>I even tried to create a virtual host and it doesnt work.</p>
  <p>For instance, if I want a directory called &quot;pyl&quot; located inside the apache root (<code>/var/www</code>) what would the lines for <code>httpd.conf</code> be?</p>