반응형
<출처:http://www.taeyo.net/Forum/Content.aspx?SEQ=1574&TBL=KNOWHOW / 글쓴이 : 호빵 >
iis7에서 html 매핑을 위해서
처리기 매핑 에서
스크립트 매핑추가
요청경로 .html 입력
실행파일 %windir%\system32\inetsrv\asp.dll 혹은 C:\windows\system32\inetsrv\asp.dll 입력
이름 알기쉽게 입력 ex) html ASP
요청제한클릭
매핑 체크박스 체크
동사 > 다음동사중 하나 사용 , GET,HEAD,POST 입력
엑세스 스크립트 선택
이렇게 iis에서 적용 해줍니다.
그러면 web.config 파일에 아래와 같이 적용이 됩니다.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="Default.htm" />
<remove value="Default.asp" />
<remove value="index.htm" />
<remove value="index.html" />
<remove value="iisstart.htm" />
<remove value="default.aspx" />
<remove value="login.asp" />
</files>
</defaultDocument>
<handlers>
<add name="html ASP" path=".html" verb="GET,HEAD,POST" modules="IsapiModule"
scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" preCondition="bitness64" />
</handlers>
</system.webServer>
</configuration>
handlers 부분에
<add name="HTM-TO-ASP" path="*.html" verb="*" modules="IsapiModule"
scriptProcessor="C:\windows\system32\inetsrv\asp.dll" resourceType="File" requireAccess="Script"/>
를 추가 해주면 됩니다.
이렇게 되겠죠.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="Default.htm" />
<remove value="Default.asp" />
<remove value="index.htm" />
<remove value="index.html" />
<remove value="iisstart.htm" />
<remove value="default.aspx" />
<remove value="login.asp" />
</files>
</defaultDocument>
<handlers>
<add name="html ASP" path=".html" verb="GET,HEAD,POST" modules="IsapiModule"
scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="File" preCondition="bitness64" />
<add name="HTM-TO-ASP" path="*.html" verb="*"
modules="IsapiModule" scriptProcessor="C:\windows\system32\inetsrv\asp.dll" resourceType="File"
requireAccess="Script"/>
</handlers>
</system.webServer>
</configuration>
C:\windows\system32\inetsrv\asp.dll 로 써주던
%windir%\system32\inetsrv\asp.dll 로 써주던 적용은 같이 됩니다.
iis게시판에 문의 한 적이 있는데 혹시나 저 처럼 고생 하실 분 계실까봐 올립니다.반응형
'Knowlege book > 개발 및 프로그래밍' 카테고리의 다른 글
| [APM] 스카우터(scouter) 특정 파일 시스템 사용량 모니터링 제외 설정 (0) | 2021.06.09 |
|---|---|
| Spring 에서 encodingFilter 이용해서 UTF-8 로 변경하기 (0) | 2016.04.29 |
| 톰캣 서버 메이븐에서 호출하기 (0) | 2015.01.15 |
| ios8 alertview 텍스트 정렬 문제 (0) | 2014.10.10 |
| [iOS] Xcode5, AppIcon Gloss effects/반사광 제거 (0) | 2013.12.12 |