XML   71

Web.config

Guest on 28th July 2022 02:13:56 AM

  1. <?xml version="1.0"?>
  2. <!--
  3.  For more information on how to configure your ASP.NET application, please visit
  4.  http://go.microsoft.com/fwlink/?LinkId=169433
  5.  -->
  6. <configuration>
  7.   <connectionStrings>
  8.     <!--<add name="ConnectionStringName" providerName="System.Data.SqlClient" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=cloverDb;Integrated Security=True;MultipleActiveResultSets=True"/>-->
  9.     <!--<add name="ConnectionStringName" providerName="System.Data.SqlClient" connectionString="Data Source=SQL5037.site4now.net;Initial Catalog=DB_A05C34_clover;User Id=DB_A05C34_clover_admin;Password=P@ssword123;"/>-->
  10.    
  11.  
  12.     <add name="ConnectionStringName" providerName="System.Data.SqlClient" connectionString="Data Source=website-pc;Initial Catalog=clovertest;User Id=sa;Password=clv.sql123;"/>
  13.  
  14.                                                                                            
  15.  
  16.   </connectionStrings>
  17.   <!--
  18.    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.
  19.  
  20.    The following attributes can be set on the <httpRuntime> tag.
  21.      <system.Web>
  22.        <httpRuntime targetFramework="4.6.1" />
  23.      </system.Web>
  24.  -->
  25.   <system.web>
  26.     <compilation debug="true" targetFramework="4.6.1"/>
  27.  
  28.     <!--<customErrors mode="OFF" redirectMode="ResponseRewrite">
  29.        <error statusCode="404" redirect="~/404.aspx" />
  30.      </customErrors>-->
  31.     <!--<customErrors mode="On" defaultRedirect="404"/>-->
  32.     <!--<customErrors mode="On" redirectMode="ResponseRewrite">
  33.        <error statusCode="404" redirect="~/404.aspx" />
  34.         <compilation debug="true" targetFramework="4.6.1"/>
  35.      </customErrors>-->
  36.     <authentication mode="Forms">
  37.       <forms defaultUrl="rcms/pages/Accounting/default.aspx" loginUrl="~/default.aspx" timeout="30000000" slidingExpiration="true"/>
  38.     </authentication>
  39.     <httpRuntime maxRequestLength="1048576"/>
  40.     <sessionState mode="InProc" cookieless="false" timeout="6000"/>
  41.     <!--<customErrors mode="On" defaultRedirect="404">
  42.        <error statusCode="404" redirect="~/404"/>
  43.      </customErrors>-->
  44.     <customErrors mode="Off"/>
  45.   </system.web>
  46.   <system.webServer>
  47.  
  48.  
  49.     <rewrite>
  50.       <rules>
  51.         <!--<rule name="HTTP to HTTPS redirect" stopProcessing="true">
  52.          <match url="(.*)" />
  53.          <conditions>
  54.            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  55.          </conditions>
  56.          <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
  57.        </rule>-->
  58.         <rule name="RewriteASPX">
  59.           <match url="(.*)"/>
  60.           <conditions logicalGrouping="MatchAll">
  61.             <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
  62.             <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
  63.           </conditions>
  64.           <action type="Rewrite" url="{R:1}.aspx" redirectType="Permanent"/>
  65.         </rule>
  66.         <!--<rule name="httpsredirect" >
  67.          <match url="(.*)" />
  68.          <conditions>
  69.            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  70.          </conditions>
  71.          <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
  72.        </rule>-->
  73.         <!--<rule name="HTTP to HTTPS redirect" >
  74.          <match url="(.*)" />
  75.          <conditions>
  76.            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  77.          </conditions>
  78.          <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
  79.        </rule>-->
  80.         <!--<rule name="readmoreevents">
  81.          <match url="^events-details/([0-9]+)/([_0-9a-z-]+)"/>
  82.          <action type="Rewrite" url="read-more-event.aspx?eventId={R:1}&amp;title={R:2}"/>
  83.        </rule>
  84.  
  85.  
  86.  
  87.        <rule name="readmorenews">
  88.          <match url="^news-details/([0-9]+)/([_0-9a-z-]+)"/>
  89.          <action type="Rewrite" url="news-readmore.aspx?NewsId={R:1}&amp;title={R:2}"/>
  90.        </rule>-->
  91.         <!--<rule name="HTTP to HTTPS redirect" stopProcessing="true">
  92.          <match url="(.*)" />
  93.          <conditions>
  94.            <add input="{HTTPS}" pattern="off" ignoreCase="true" />
  95.          </conditions>
  96.          <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}" />
  97.        </rule>-->
  98.       </rules>
  99.       <rewriteMaps>
  100.         <rewriteMap name="MapProtocol">
  101.           <add key="on" value="https"/>
  102.           <add key="off" value="http"/>
  103.         </rewriteMap>
  104.       </rewriteMaps>
  105.     </rewrite>
  106.  
  107.  
  108.     <security>
  109.       <requestFiltering>
  110.         <requestLimits maxAllowedContentLength="1073741824"/>
  111.       </requestFiltering>
  112.     </security>
  113.     <staticContent>
  114.       <!--<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
  115.      <mimeMap fileExtension=".m4v" mimeType="video/m4v" />
  116.      <mimeMap fileExtension=".ogg" mimeType="video/ogg" />
  117.      <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
  118.      <mimeMap fileExtension=".webm" mimeType="video/webm" />
  119.  
  120.      <mimeMap fileExtension=".oga" mimeType="audio/ogg" />
  121.      <mimeMap fileExtension=".spx" mimeType="audio/ogg" />
  122.  
  123.      <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
  124.      <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
  125.          <mimeMap fileExtension=".json" mimeType="application/json" />
  126.  
  127.          <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
  128.      <mimeMap fileExtension=".otf" mimeType="font/opentype  " />
  129.      <mimeMap fileExtension=".woff" mimeType="application/x-woff" />-->
  130.       <!--<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="10.00:00:00"/>-->
  131.     </staticContent>
  132.     <httpProtocol>
  133.       <!--<customHeaders>
  134.        <add name="Cache-Control" value="public" />
  135.      </customHeaders>-->
  136.     </httpProtocol>
  137.     <httpErrors>
  138.       <remove statusCode="401" subStatusCode="-1"/>
  139.       <remove statusCode="403" subStatusCode="-1"/>
  140.       <remove statusCode="404" subStatusCode="-1"/>
  141.       <remove statusCode="500" subStatusCode="-1"/>
  142.       <!--<error statusCode="401" path="/401.aspx" responseMode="Redirect" />
  143.      <error statusCode="403" path="/403.aspx" responseMode="Redirect" />
  144.      <error statusCode="404" path="/404.aspx" responseMode="Redirect" />
  145.      <error statusCode="500" path="/500.aspx" responseMode="Redirect" />-->
  146.     </httpErrors>
  147.   </system.webServer>
  148.   <location path="css/app.min.css">
  149.     <system.webServer>
  150.       <!--<staticContent>
  151.        <clientCache cacheControlMode="DisableCache"/>
  152.      </staticContent>-->
  153.     </system.webServer>
  154.   </location>
  155. </configuration>

Raw Paste


Login or Register to edit or fork this paste. It's free.