C.2 Web.config File for the Enterprise Server

By default, the web.config file for the enterprise server is in the /usr/lib/simias/web/Web.config directory. The following is an example of a configured file.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<!-- Enable this if you want gzip compression. Also uncomment the <mono.aspnet> section below
  <configSections>
     <sectionGroup name="mono.aspnet">
     <section name="acceptEncoding"
        type="Mono.Http.Configuration.AcceptEncodingSectionHandler,
              Mono.Http, Version=1.0.5000.0,
              PublicKeyToken=0738eb9f132ed756" /> 
     </sectionGroup>    
  </configSections>
-->
<system.web>
   <customErrors mode="Off"/>
   <httpRuntime
       executionTimeout="3400"
       maxRequestLength="2097152"
   />
<!-- take this out until we need it
  <webServices>
    <soapExtensionTypes>
      <add type="DumpExtension, extensions" priority="0" group="0" />
      <add type="EncryptExtension, extensions" priority="1" 
           group="0" />
    </soapExtensionTypes>
  </webServices>
-->
  <authentication mode="None">
  </authentication>
  <httpModules>
    <add name="AuthenticationModule"
       type="Simias.Security.Web.AuthenticationModule, SimiasLib"/>
  </httpModules>
  <httpHandlers>
     <add verb="*" path="admindata/*.log"                 
        type="Simias.Server.ReportLogHandler,Simias.Server"/>
     <add verb="*" path="admindata/*.csv"                 
        type="Simias.Server.ReportLogHandler,Simias.Server"/>
  </httpHandlers>
</system.web>
<system.net>
  <connectionManagement>
    <add address="*" maxconnection="10" />
  </connectionManagement>
</system.net>
<!--
<mono.aspnet>
   <acceptEncoding>
   <add encoding="gzip" 
        type="Mono.Http.GZipWriteFilter, Mono.Http, Version=1.0.5000.0,
            PublicKeyToken=0738eb9f132ed756" disabled="no" />
   </acceptEncoding>
</mono.aspnet>
-->
<appSettings>
    <add key="MonoServerDefaultIndexFiles" value="index.aspx,
              Default.aspx,default.aspx, index.html, index.htm" />
    <add key="SimiasCert" value="" />
</appSettings>
</configuration>