사용자 도구

사이트 도구


wiki:web:apache

문서의 이전 판입니다!


Apache

  • description : 주레피 현황
  • author : 주레피
  • email : dhan@repia.com
  • lastupdate : 2020-04-02

httpd.conf

http 로 들어올 경우 https 로 강제 전환(force redirect)
아파치 모듈중 mod_rewrite 를 사용하면 가능하다.

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L]

http 로 들어올 경우 https 로 강제 전환(force redirect)

Ref

/volume1/web/dokuwiki/data/attic/wiki/web/apache.1604113193.txt.gz · 마지막으로 수정됨: 2022/03/10 19:52 (바깥 편집)