Quantcast
Channel: Configuration & Scripting
Viewing all articles
Browse latest Browse all 780

problem with web.config with images directory.

$
0
0

I am trying to enable http compression in web.config.  My images don't show up and when I go to the iamge link I get this message:

ModuleStaticCompressionModule
NotificationMapRequestHandler
HandlerStaticFile
Error Code0x80070021
Config ErrorThis configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
Config File\\?\D:\inetpub\redhotkitties\web.config
24:     <urlCompression doStaticCompression="true" doDynamicCompression="true" />

I have tried using the location tag(no effect), the clear tag(syntax error) allowoverride(no effect), and googled for a few hours trying to get this to work.

Basically I need to exclude line 24 above in my root web config from applying to the img directory, which has its own web.config(for browser caching).  I can't think of anything else to try.

Here is the main web.config:

<?xml version="1.0" encoding="UTF-8"?><configuration><location path="." overrideMode="Allow" ><system.webServer><httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"><scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" staticCompressionLevel="9" /><dynamicTypes><add mimeType="text/*" enabled="true" /><add mimeType="message/*" enabled="true" /><add mimeType="application/x-javascript" enabled="true" /><add mimeType="application/json" enabled="true" /><add mimeType="*/*" enabled="false" /></dynamicTypes><staticTypes><add mimeType="text/*" enabled="true" /><add mimeType="message/*" enabled="true" /><add mimeType="application/x-javascript" enabled="true" /><add mimeType="application/atom+xml" enabled="true" /><add mimeType="application/xaml+xml" enabled="true" /><add mimeType="*/*" enabled="false" /></staticTypes></httpCompression><urlCompression doStaticCompression="true" doDynamicCompression="true" /><rewrite><rules><rule name="Imported Rule 1-2" stopProcessing="true"><match url="(.*)" ignoreCase="false" /><conditions logicalGrouping="MatchAll"><add input="{HTTP_HOST}" pattern="theartoflovingcatsanddogs\.com" /><add input="{URL}" pattern="^/site_theartoflovingcatsanddogs_com/" negate="true" /></conditions><action type="Rewrite" url="/site_theartoflovingcatsanddogs_com/{R:1}" /></rule></rules><outboundRules><preConditions><preCondition name="ResponseIsHtml1"><add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /></preCondition></preConditions></outboundRules><rewriteMaps><rewriteMap name="theartoflovingcatsanddogs.com" /></rewriteMaps></rewrite><handlers><add name="mod_rewrite" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\System32\inetsrv\imodrewi.dll" resourceType="Unspecified" requireAccess="None" preCondition="bitness64" /></handlers></system.webServer></location></configuration>


Viewing all articles
Browse latest Browse all 780

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>