윈도우 이야기/Web Server
Windows 2012 R2 IIS 에서 html 내의 asp 스크립트 실행이 안 됨
독까
2016. 7. 20. 16:40
일반적인 방식으로
처리기매핑에 스크립트 매핑을 추가 하였으나 출력 안 됨 : *.html / %windir%\system32\inetsrv\asp.dll / ASP_HTML
기존
<handlers>
<remove name="ASP_HTML" />
<add name="ASP_HTML" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" preCondition="bitness64" />
</handlers>
</system.webServer>
그래서
web.config 파일을 아래와 같이 수정 했더니 잘 됨
<handlers>
<remove name="ASP_HTML" />
<add name="ASP_HTML" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" preCondition="bitness32" />
</handlers>
<add name="ASP_HTML" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" preCondition="bitness32" />
</handlers>
</system.webServer>