개발이야기/개발

IIS URL 재작성 https 설정하는 방법 (https 리다이렉션)

2018. 7. 13. 10:12
반응형

http프로토콜을 IIS에서 https로 리다이렉션 하는 방법을 기술 해놨네요.

IIS 8.5 기준입니다.

1. 웹서비스에서 URL 재작성 클릭

2. 규칙추가

3. 빈규칙 선택, 적용

4. URL 검색, 조건, 작업 아래 이미지와 같이 적용


Requested URL: Matches the Pattern

Using: Regular Expressions

Pattern: (.*)

Condition Input: {HTTPS}

Check if input string: Matches the Pattern

Pattern: ^OFF$

Action Type: Redirect

Redirect URL: https://{HTTP_HOST}/{R:1}

Redirect Type: See Other (303)


원본 출처 http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/


반응형

작성자

Posted by 구르는石

공유

댓글