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
번호 분류 제목 글쓴이 날짜 조회 수
14 Etc 영어. 반드시 외워야 할 영어 숙어 2 file hooni 2016.07.07 6342
13 Etc 웹 보안 논문 주제 2016 secret hooni 2016.11.28 0
12 Etc ISMS 인증기준 – 정보보호대책 (시스템개발보안) file hooni 2016.12.01 1328
11 Etc 모바일 프로그래머가 갖추어야 할 필수 역량 file hooni 2017.02.16 1304
10 Etc 종합시험 관련 자료 secret hooni 2017.03.15 0
9 Etc 사이버보안실무 수업 메모 hooni 2017.03.30 818
8 Etc 사이버보안실무 시험. secret hooni 2017.04.20 0
7 Etc IT감사 기법 시험 file hooni 2017.06.14 1423
6 Etc 캘리포니아 운전면허 문제 file hooni 2017.07.22 982
5 Etc 영어. 불규칙 동사 정리 file hooni 2017.10.04 3518
4 Etc How to completely Uninstall Coda hooni 2017.10.24 2197
3 Etc RSVP 란? file hooni 2017.11.22 989
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6