title: Httpd.conf multiple VirtualHost sections (was: Mono ASP.NET MVC AutoHosting issues)
body: <p>I'm doing exactly <a href="https://stackoverflow.com/questions/699487/mono-2-4-autohosting-and-mvc/703196#703196">this</a> by trying to disable AutoHosting. However now I get "Failed to connect to mod-mono-server after several attempts to spawn the process." in the logs.  The path is correct</p>
  
  <p>Here's my config:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName myserver.com  
      DocumentRoot /home/abe/html/  
      MonoServerPath myserver.com "/usr/local/bin/mod-mono-server2"  
      MonoDebug myserver.com true  
      MonoSetEnv myserver.com MONO_IOMAP=all  
      MonoAutoApplication disabled  
      MonoApplications myserver.com "/:/home/abe/html/"  
      &lt;Location "/"&gt;
          Allow from all  
          Order allow,deny  
          MonoSetServerAlias myserver.com  
          SetHandler mono  
      &lt;/Location&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Fixed: see the answer below.</p>
  
  <p>With the fix, though, how can I get the configuration I want w/o doing the dangerous process of editing the auto-gen'd httpd.conf?</p>