Contents

System/OS
2022.02.03 04:20

[apache2] Redirect HTTP to HTTPS

조회 수 696 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
50 Etc 캘리포니아 운전면허 문제 file hooni 2017.07.22 985
49 Etc RSVP 란? file hooni 2017.11.22 993
48 Etc EBS [수학영역] 미적분과 통계 기본 - 정규분포의 의미와 특징은? hooni 2015.04.20 1007
47 Etc 원어민이 매일 쓰는 일상표현 150개 file hooni 2023.09.17 1124
46 Etc 영어. 반드시 외워야 할 문장 패턴 100개 file hooni 2023.06.08 1146
45 Etc 모바일 프로그래머가 갖추어야 할 필수 역량 file hooni 2017.02.16 1308
44 Etc ISMS 인증기준 – 정보보호대책 (시스템개발보안) file hooni 2016.12.01 1331
43 Etc 아이폰의 터치스크린 정확도 file hooni 2015.04.01 1426
42 Etc IT감사 기법 시험 file hooni 2017.06.14 1427
41 Etc 인증서 *.p12 파일을 *.pem 파일로 변환 hooni 2015.04.30 1809
40 Etc 영어. 반드시 외워야 할 단어 file hooni 2016.07.07 1982
39 Etc How to completely Uninstall Coda hooni 2017.10.24 2209
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6