1. Application Pool 해제
asp 방식이 아닌 none으로
2. URL Rewrite 모듈 추가
https://www.iis.net/downloads/microsoft/url-rewrite
URL Rewrite : The Official Microsoft IIS Site
Overview IIS URL Rewrite 2.1 enables Web administrators to create powerful rules to implement URLs that are easier for users to remember and easier for search engines to find. By using rule templates, rewrite maps, .NET providers, and other functionality i
www.iis.net
3. web.config 파일 추가
https://angularindepth.com/posts/1239/deploy-an-angular-application-to-iis
Angular in Depth
angularindepth.com
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Angular Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="./index.html" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
관련영상
https://www.youtube.com/watch?v=yrUCWuPAmS8&t=235s
https://www.youtube.com/watch?v=KQMHCXF5aew
https://www.youtube.com/watch?v=dPlv_LaBVT8&t=598s
https://www.youtube.com/watch?v=0XR3quuqth0&t=583s
'BE > OS' 카테고리의 다른 글
[ Windows ] IIS 설치 방법 (0) | 2024.03.04 |
---|---|
[ OSX ] 연결된 와이파이의 비밀번호 확인 방법 (0) | 2024.01.11 |
[ OSX ] Mac 내부 아이피 확인 (0) | 2023.10.26 |
[ OS ] M1 arm64 에러 해결 방법 (0) | 2023.08.07 |
[ OSX ] 키보드 자동 맞춤법 검사 해제 (0) | 2023.07.02 |