Contents

System/OS
2022.02.03 04:20

[apache2] Redirect HTTP to HTTPS

Views 829 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

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
No. Category Subject Author Date Views
57 Develop 사이버보안실무 발표자료 (2017.06.08) file hooni 2017.06.05 1326
56 Etc 사이버보안실무 수업 메모 hooni 2017.03.30 919
55 Develop 사이버보안실무 수업 메모 secret hooni 2017.03.23 0
54 Etc 사이버보안실무 시험. secret hooni 2017.04.20 0
53 PPT 삼성페이(Samsung Pay) 구조 file hooni 2016.09.09 1010
52 Develop 서기의 PHP 동영상 강의(싱싱해) hooni 2013.05.15 31042
51 System/OS 서버 확장을 위한 두 가지 방법 file hooni 2018.08.29 2249
50 Etc 선과 악에 대한 영어논술문항(지킬앤하이드 독서 후 이어지는 심화 수행평가) hooni 2013.12.04 12785
49 Etc 성문 종합 영어 정리된 pdf 파일 file hooni 2013.06.25 31193
48 Etc 수리통계학 : 표본공간과 사상-1 hooni 2015.04.20 976
47 Etc 스마트폰 보안 해외 발생 사례~ file hooni 2013.04.23 24997
46 Algorithm 스터디 자료, 암호화에 대해서.. 나중에 볼 ppt.. file hooni 2013.04.23 13432
Board Pagination Prev 1 ... 89 90 91 92 93 94 95 96 97 98 Next
/ 98