압축된 콘텐츠를 캐싱하기 위해 지정된 디렉터리가 잘못되었습니다.

Microsoft.Windows.InternetInformationServices.10.0.The.directory.specified.for.caching.compressed.content.is.invalid (Rule)

Knowledge Base article:

요약

IIS(인터넷 정보 서비스) W3SVC(World Wide Web Publishing 서비스)는 성능 데이터를 수집하고 HTTP 압축을 수행하도록 구성할 수 있습니다. W3SVC가 HTTP 압축을 수행하도록 구성된 경우 NTFS 볼륨에 있는 유효한 압축 디렉터리를 지정해야 합니다.

해결 방법

압축 디렉터리 확인

IIS는 정적 파일의 압축된 버전이 임시로 캐시될 수 있는 디렉터리를 사용합니다. 기본 디렉터리는 is %SystemDrive%\inetpub\temp\IIS Temporary Compressed Files입니다. 파일 조회 시간을 단축하고 보안을 강화하기 위해 IIS 10에서는 이 폴더에 각 응용 프로그램 풀에 대한 하위 폴더와 각 응용 프로그램 풀 폴더에 각 압축 구조에 대한 하위 폴더를 만듭니다.

IIS 관리자를 사용하여 다른 캐시 폴더를 지정할 수 있습니다. 이 설정은 서버 수준에서 수행됩니다. 캐시 폴더 설정은 ApplicationHost.config 파일에서 system.webServer 아래에 있는 httpCompression 섹션의 디렉터리 특성에 저장됩니다. 지정된 디렉터리 위치가 없거나 액세스할 수 없는 경우 정적 비교를 사용할 수 없습니다.

이 오류를 해결하려면 IIS 관리자를 사용하여 현재 구성된 값을 확인하십시오. 지정된 디렉터리가 없으면 디렉터리를 만들거나 존재하는 새 위치를 지정하십시오. IIS 관리자를 사용하려면 다음 단계를 수행하십시오.

IIS 관리자를 사용하여 압축 디렉터리 위치를 수정하려면:

httpCompression 섹션에 대한 자세한 내용은 IIS 10: httpCompression Element (IIS Settings Schema)(IIS 10: httpCompression 요소(IIS 설정 스키마))를 참조하세요.

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.WebServer
CategoryAlert
EnabledTrue
Event_ID2264
Event SourceMicrosoft-Windows-IIS-W3SVC-WP
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.The.directory.specified.for.caching.compressed.content.is.invalid" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC-WP</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2264</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.10.0.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.The.directory.specified.for.caching.compressed.content.is.invalid.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>