사용자 도구

사이트 도구


wiki:web:apache

문서의 이전 판입니다!


Apache

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

httpd.conf

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

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

http 로 들어올 경우 https 로 강제 전환(force redirect)
Apache HTTPS/HTTP 리다이렉트(Redirect/Rewrite) 하는 방법

Case Study

$> ls /etc/httpd/conf.d/welcome.conf 
파일 수정 하면 됩니다.

SSL(https) 적용 가이드

Ref

/volume1/web/dokuwiki/data/attic/wiki/web/apache.1675074801.txt.gz · 마지막으로 수정됨: 2023/01/30 19:33 저자 dhan