...
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 |
...