사용자 도구

사이트 도구


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

/var/services/web/dokuwiki/data/pages/wiki/web/apache.txt · 마지막으로 수정됨: 2023/01/30 19:33 저자 dhan