이 문서는 http를 https로 Redirect하기 위한 방법을 공유하기 위해 작성되었다.
httpd.conf 파일에 다름 추가 혹은 수정 - https가 아닐 경우 https로 변경.
<VirtualHost *:80> ...... RewriteEngine on RewriteCondition %{HTTPS} !=on RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L] </VirtualHost>
{SERVER_NAME} 부분에 서버 주소 입력 수행
아파치 재시작
# > sudo systemctl restart httpd.service