환경
IIS
Asp.Net
BootStrap
문제상황
브라우져에서 디버깅 모드로 가면
less 폴더 이하의 모든 파일 404 에러
.woff2 파일 404 에러
해결방법
1. web.config 수정
<system.webServer> <staticContent> <remove fileExtension=".woff" /> <remove fileExtension=".woff2" /> <remove fileExtension=".less" /> <mimeMap fileExtension=".woff" mimeType="application/font-woff" /> <mimeMap fileExtension=".woff2" mimeType="application/font-woff" /> <mimeMap fileExtension=".less" mimeType="text/css" /> </staticContent> <validation validateIntegratedModeConfiguration="false" /> </system.webServer>
2. IIS Manager에서 site에서 폴더 권한 설정
site 선택 -> Edit Permissions -> Security -> Edit -> Add -> Everyone 계정 추가, 권한은 list folder contents, read -> apply
'Develop' 카테고리의 다른 글
mysql procedure 내 문자열 검색 (0) | 2016.07.29 |
---|---|
javascript file loading (0) | 2016.07.25 |
Mysql AES_Encrypt (0) | 2016.06.27 |
powershell web 관련 명령어 (0) | 2016.06.02 |
powershell 폴더구조 복사 (0) | 2016.06.02 |