IIS URL 재작성 모듈이 설치돼 있어야 한다.
web.config를 편집한다.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
ㆍㆍㆍ
<rewrite>
<rules>
<rule name="HTTP to HTTPs Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
</rules>
</rewrite>
ㆍ ㆍ ㆍ
</system.webServer>
</configuration>
'응용' 카테고리의 다른 글
| SMTP 발송 테스트용 텍스트파일 작성 예 - IIS (0) | 2026.10.10 |
|---|---|
| 1gb huge pages 사용 - Ubuntu 20.04 (0) | 2026.10.10 |
| Android Studio ADB error (10061) - 네트워크 연결 오류 (0) | 2026.10.10 |
| SSH 포워드, 리버스 터널 - 멀티 포트 (0) | 2026.10.01 |
| SSH 포워드 터널 - 멀티 포트 (0) | 2026.10.01 |