Skip to content

Instantly share code, notes, and snippets.

Stewart Walter bigstylee

Block or report user

Report or block bigstylee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nurtext / .htaccess
Last active Jul 17, 2019
Tell apache we're on HTTPS if reverse proxy is serving the site using SSL
View .htaccess
# Let apache know we're behind a SSL reverse proxy
SetEnvIf X-Forwarded-Proto "https" HTTPS=on
# Redirect to HTTPS
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
You can’t perform that action at this time.