title: Custom file extensions for ASP.NET - help needed!
body: <p>I've got modaspdotnet working on my Apache 2.2 server, and as such it runs ASP.NET and MySQL pretty well.</p>
  
  <p>However, what I'd like to do is serve up content with other extensions than just the default .aspx, e.g. myfile.customextension.</p>
  
  <p>In Apache, I believe it's done via .htaccess, but in ASP.NET it's done via the web.config.</p>
  
  <p>This is my web.config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.web&gt;
    &lt;/system.web&gt;
      &lt;system.webServer&gt;
          &lt;staticContent&gt;
              &lt;mimeMap fileExtension=".testing1" mimeType="application/x-asp-net " /&gt;
          &lt;/staticContent&gt;
      &lt;/system.webServer&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>It DOES work, but the ASP.NET code doesn't render properly - and I want to be able to run ASP.NET code with any custom extension.</p>
  
  <p>IIS and NET 3.5 are installed.</p>
  
  <p>I don't want to run a full IIS server but do need ASP.NET for a project I'm doing, hence the modaspdotnet add-on for Apache.</p>
  
  <p>This is the final line of my httpd.conf signifying the install of modaspdotnet:</p>
  
  <pre><code>    LoadModule aspdotnet_module modules/mod_aspdotnet.so
  
  # Use the asp.net handler for all common ASP.NET file types
  AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj \
                     licx rem resources resx soap vb vbproj vsdisco webinfo 
  &lt;IfModule mod_aspdotnet.cpp&gt; 
    # For all virtual ASP.NET webs, we need the aspnet_client files
    # to serve the client-side helper scripts.
    AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
    &lt;Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles"&gt;
      Options FollowSymlinks
      Order allow,deny
      Allow from all
    &lt;/Directory&gt;
  &lt;/IfModule&gt;
  #asp.net 
  AddType application/x-asp-net .asp
  AddType text/html .asp
  AddHandler application/x-httpd-php .asp
  </code></pre>
  
  <p>Why is this not working for me, and what should I do to resolve this?
  I had a look around the net, but couldn't find too much... any ideas?</p>