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/





?

  1. 캘리포니아 운전면허 족보

  2. [ppt] iOS 플라랩#01(2015.02.26) 발표 자료

  3. [ios] Crashlytics, Fabfic 설치/설정

  4. WM미통기 - 10. 조건부확률

  5. [Javascript][Ajax] 자바스크립트 강의 산출물

  6. [android] Android N requires the IDE to be running with Java 1.8 or later 오류

  7. [ios] 비디오,네트워크,소셜로그인 테스트

  8. [apache2] Redirect HTTP to HTTPS

  9. [matlab] 정보은닉 스테가노그래피(Steganography) 수업

  10. [js] Text 값을 클립보드에 복사하기

  11. [swift] 실행시간 측정하기

  12. 정리할 자료.

Board Pagination Prev 1 ... 89 90 91 92 93 94 95 96 97 98 Next
/ 98