Contents

System/OS
2022.02.03 04:20

[apache2] Redirect HTTP to HTTPS

조회 수 691 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

apache01.jpg




<VirtualHost *:80> 
  ServerName example.com
  ServerAlias www.example.com

  Redirect permanent / https://example.com/
</VirtualHost>

<VirtualHost *:443>
  ServerName example.com
  ServerAlias www.example.com

  Protocols h2 http/1.1

  # SSL Configuration

  # Other Apache Configuration

</VirtualHost>



<VirtualHost *:80> 
  ServerName example.com
  ServerAlias www.example.com

  Redirect permanent / https://example.com/
</VirtualHost>

<VirtualHost *:443>
  ServerName example.com
  ServerAlias www.example.com

  Protocols h2 http/1.1

  <If "%{HTTP_HOST} == 'www.example.com'">
    Redirect permanent / https://example.com/
  </If>

  # SSL Configuration

  # Other Apache Configuration

</VirtualHost>




[출처] https://linuxize.com/post/redirect-http-to-https-in-apache/





?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
9 Algorithm [algorithm] Greedy (탐욕 기법) hooni 2003.04.23 15108
8 Algorithm [security] RSA 암호화 설명과 예.. hooni 2013.04.23 16618
7 Algorithm 스터디 자료, 암호화에 대해서.. 나중에 볼 ppt.. file hooni 2013.04.23 13374
6 Algorithm [security] 블럭 암호에 대해서.. hooni 2013.04.23 17121
5 Algorithm Polynomial time 이란? ㅋㅋ hooni 2013.04.23 22692
4 Algorithm 암호 알고리즘 및 프로토콜의 이해.. file hooni 2013.04.23 17213
3 Algorithm 디피헬만(Diffie-Hellman) 초간단 개념.. hooni 2013.04.23 81022
2 Algorithm 러시아 페인트공 알고리즘에 대해.. hooni 2013.04.23 22899
1 Algorithm OCB5 Injection 앗싸뵹! ㅋㅋ file hooni 2014.07.01 808
Board Pagination Prev 1 Next
/ 1