Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 286 Bytes

Redirect-Http-Request-to-Https.md

File metadata and controls

16 lines (12 loc) · 286 Bytes

Add this in virtualhost of 80

Edit the file

vim /etc/httpd/conf/httpd.conf

And add this in virtualhost

RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteCond %{REQUEST_URI} !^/health_check
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]