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
번호 분류 제목 글쓴이 날짜 조회 수
1137 Etc 양성/음성 오류에 대한 개념 hooni 2013.04.23 19855
1136 Algorithm 암호 알고리즘 및 프로토콜의 이해.. file hooni 2013.04.23 17213
1135 Develop 알고리즘 성능분석 file hooni 2014.06.24 2971
1134 Develop 알고리즘 성능 분석 기준 hooni 2014.06.24 2791
1133 System/OS 아파치(Apache) 인증사용(htaccess)으로 특정 디렉토리에 암호걸기 hooni 2013.04.23 13659
1132 Etc 아이폰의 터치스크린 정확도 file hooni 2015.04.01 1423
1131 Develop 아이 훌레시 작업중 ㅋㅋ secret hooni 2013.08.09 0
1130 Etc 아두이노 관련 정보.. hooni 2013.04.23 21772
1129 Etc 스파이웨어(BHO) 탐지하는 방법.. hooni 2013.04.23 44413
1128 Algorithm 스터디 자료, 암호화에 대해서.. 나중에 볼 ppt.. file hooni 2013.04.23 13374
1127 Etc 스마트폰 보안 해외 발생 사례~ file hooni 2013.04.23 24942
1126 Etc 수리통계학 : 표본공간과 사상-1 hooni 2015.04.20 905
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 98 Next
/ 98