title: 403 forbidden using fastcgi
body: <p>Trying to set up a <a href="http://www.reviewboard.org/" rel="nofollow">ReviewBoard</a> server, using apache 2.2 with fastcgi on Windows 7 (no, Linux isn't an option).  I'm using (basically) the default httpd.conf, with mod_fcgid and mod_rewrite loaded, and 
  <code>Include C:\mars\reviews\conf\apache-fastcgi.conf</code> added at the bottom.  This too is the default, excepting the <code>Order</code>, <code>Allow</code>, and <code>+Indexes</code>.  The trouble is, when I attempt to load the site, I get 403 for <code>/</code> (which, according to the rewrite rule, would become <code>reviewboard.fcgi</code>).  I added <code>+Indexes</code> to prove that yes, in fact, I can access those directories, so it doesn`t appear to be a permissions problem.</p>
  
  <p>When I add <code>ExecCgi</code>, those 403 errors turn into 404 errors!  I'm at my wits end, and over my head.</p>
  
  <p>The contents of <code>C:\mars\reviews\conf\apache-fastcgi.conf</code> (with <code>ServerName</code> redacted):</p>
  
  <pre><code>&lt;IfModule mod_fcgid.c&gt;
      AddHandler fcgid-script .fcgi
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_fastcgi.c&gt;
      AddHandler fastcgi-script .fcgi
  
      FastCGIServer "c:/mars/reviews/htdocs/reviewboard.fcgi" -socket "c:/mars/reviews/tmp/fastcgi.sock"
  &lt;/IfModule&gt;
  
  &lt;VirtualHost *:80&gt;
      ServerName #redacted
      DocumentRoot "c:/mars/reviews/htdocs"
  
      # Alias static media requests to filesystem
      Alias /media "c:/mars/reviews/htdocs/media"
      Alias /errordocs "c:/mars/reviews/htdocs/errordocs"
  
      # Error handlers
      ErrorDocument 500 /errordocs/500.html
  
      &lt;Directory "c:/mars/reviews/htdocs"&gt;
          Options +Indexes
          AllowOverride All
          Order allow,deny
          Allow from all
      &lt;/Directory&gt;
  
      # Direct all other requests to the fastcgi server
      RewriteEngine on
      &lt;IfModule mod_fcgid.c&gt;
          RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
          RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]
      &lt;/IfModule&gt;
      &lt;IfModule mod_fastcgi.c&gt;
          RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
          RewriteRule ^/(errordocs.*)$ /$1 [QSA,L,PT]
      &lt;/IfModule&gt;
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^/(.*)$ /reviewboard.fcgi/$1 [QSA,L]
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>What on Earth is going wrong here??</p>