title: how to configure Munin-2.0.x to generate content with CGI (only) on Fedora?
body: <p>I've got a 400+ node munin-1.4.x installation, that I'd like to upgrade to munin-2.x, to take advantage of the CGI based content generation (html &amp; graphs) on the munin master server.  I've gone through the official dox ( <a href="http://munin-monitoring.org/wiki/CgiHowto2">http://munin-monitoring.org/wiki/CgiHowto2</a> ), and its simply not working.  It only covers a VirtualHost ( <a href="http://munin.example.com">http://munin.example.com</a> ), which is not my setup, but I tried to use it as a starting point.  </p>
  
  <p>Specifically, I want &amp; need <a href="http://example.com/munin">http://example.com/munin</a> to be the base URL that dynamically generates the html content listing all the nodes, with links to the individual node pages (which are then dynamically generated/updated when clicked upon).  The added catch is that I'm doing this on Fedora(16), and the vast majority of howto's that I've found assume Debian/Ubuntu (or assume non-cgi static content generation via cron).  </p>
  
  <p>The official Fedora munin package installs the following:</p>
  
  <ul>
  <li>munin base directory is /var/www/html/munin</li>
  <li>munin static content direcotry is /var/www/html/munin/static</li>
  <li>munin cgi scripts (munin-cg-graph &amp; munin-cg-html) are in /var/www/html/munin/cgi</li>
  </ul>
  
  <p>What I've done so far:
  * set "html_strategy cgi" and "cgiurl_graph /munin/cgi/munin-cgi-html" in /etc/munin/munin.conf
  * Added the following to /etc/httpd/conf/httpd.conf:</p>
  
  <pre><code># Rewrites
  RewriteEngine On
  Alias /static /var/www/html/munin/static
  Alias /munin /var/www/html/munin
  # HTML
  RewriteCond %{REQUEST_URI} !^/static
  RewriteCond %{REQUEST_URI} .html$ [or]
  RewriteCond %{REQUEST_URI} =/
  RewriteRule ^/(.*)           /var/www/html/munin/cgi/munin-cgi-html/$1 [L]
  # Images
  # - remove path to munin-cgi-graph, if present
  RewriteRule ^/munin/cgi/munin-cgi-graph/(.*) /$1
  RewriteCond %{REQUEST_URI}                 !^/static
  RewriteCond %{REQUEST_URI}                 .png$
  RewriteRule ^/(.*)  /var/www/html/munin/cgi/munin-cgi-graph/$1 [L]
  ScriptAlias /munin/cgi/munin-cgi-graph   /var/www/html/munin/cgi/munin-cgi-graph
  &lt;Location /munin/cgi/munin-cgi-graph&gt;
          Options +ExecCGI FollowSymLinks
          &lt;IfModule mod_fcgid.c&gt;
                  SetHandler fcgi-script
          &lt;/IfModule&gt;
          &lt;IfModule !mod_fcgid.c&gt;
                  SetHandler cgi-script
          &lt;/IfModule&gt;
  &lt;/Location&gt;
  ScriptAlias /munin/cgi/munin-cgi-html   /var/www/html/munin/cgi/munin-cgi-html
  &lt;Location /munin/cgi/munin-cgi-html&gt;
          Options +ExecCGI FollowSymLinks
          &lt;IfModule mod_fcgid.c&gt;
                  SetHandler fcgi-script
          &lt;/IfModule&gt;
          &lt;IfModule !mod_fcgid.c&gt;
                  SetHandler cgi-script
          &lt;/IfModule&gt;
  &lt;/Location&gt;
  </code></pre>
  
  <p>However, after doing all that (and restarting apache), when I go to <a href="http://example.com/munin">http://example.com/munin</a> , I get a 404 error, and in the apache error log I see:</p>
  
  <pre><code>File does not exist: /var/www/html/munin/cgi/munin-cgi-html/munin/index.html
  </code></pre>
  
  <p>I'm hoping that i'm just missing something obvious, but right now I'm at a complete loss on what else might need to be adjusted to make this work.  thanks.</p>