apache에서 모든 URL을 https로 변경하기
방법 1 : redirect 활용
<VirtualHost *:80>
ServerAdmin system@mail.com
DocumentRoot /home/user/www
ServerName www.domain.com
RedirectMatch /(.*)$ https://www.domain.com/$1
</VirtualHost>
방법 2 : rewrite rule
<VirtualHost *:80>
ServerAdmin system@mail.com
DocumentRoot /home/user/www
ServerName www.domain.com
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
</VirtualHost>