Contents

System/OS
2022.02.03 04:20

[apache2] Redirect HTTP to HTTPS

Views 680 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
9 Algorithm [algorithm] Greedy (탐욕 기법) hooni 2003.04.23 15108
8 Algorithm [security] RSA 암호화 설명과 예.. hooni 2013.04.23 16616
7 Algorithm 스터디 자료, 암호화에 대해서.. 나중에 볼 ppt.. file hooni 2013.04.23 13370
6 Algorithm [security] 블럭 암호에 대해서.. hooni 2013.04.23 17118
5 Algorithm Polynomial time 이란? ㅋㅋ hooni 2013.04.23 22681
4 Algorithm 암호 알고리즘 및 프로토콜의 이해.. file hooni 2013.04.23 17208
3 Algorithm 디피헬만(Diffie-Hellman) 초간단 개념.. hooni 2013.04.23 81019
2 Algorithm 러시아 페인트공 알고리즘에 대해.. hooni 2013.04.23 22895
1 Algorithm OCB5 Injection 앗싸뵹! ㅋㅋ file hooni 2014.07.01 798
Board Pagination Prev 1 Next
/ 1