RESTful Engine web.config

This article provides the full contents of the web.config (configuration) file used for deploying the RESTful Engine.

web.config Location

The web.config file is usually located in a directory under C:\inetpub\wwwroot\<sitename>. The directory name corresponds to the web application's port and name you provided at install.

Always back up your web.config file before modifying the original.

Sample Contents of the web.config File:

Below is a sample web.config file with the minimum required configuration for the RESTful Engine. Your license key must be inserted in the below prompted location. Generally (definitely in the case of an ASP.NET application), you will add additional necessary sections to this file depending on your needs.

For further details on log4net, please read .NET Report Engine Configuration File Reference.

Sample RESTful Engine web.config file:

<?xml version="1.0" encoding="utf-8"?>
  For more information on how to configure your ASP.NET application, please visit
    <section name="WindwardReports" type="System.Configuration.NameValueSectionHandler" />
    <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
    <add key="license" value="-->[LICENSE GOES HERE (no spaces)]<--"/>
	<add key="api-key" value=""/>
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
      <!-- This is where your log is saved; choose a location with appropriate permissions -->
      <param name="File" value="D:\Temp\RESTfulEngine.log" />
      <appendToFile value="true" />
      <rollingStyle value="Date" />
      <datePattern value=".yyyy-MM-dd" />
      <lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
      <layout type="log4net.Layout.PatternLayout">
        <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" />
      <level value="DEBUG" />
      <appender-ref ref="RollingFileAppender" />
  <appSettings />

Note: If logging is slowing you down, please see the article from Apache to remove or disable

Download Sample web.config:

You can also download this sample web.config file:


Add your comment

E-Mail me when someone replies to this comment