WEB & WAS/Apache

http -> https 리다이렉트

서버엔지니어 2023. 3. 8. 23:15
728x90

vhost 마다 설정

RewriteCond %{HTTPS} off

RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]