Skip to content

Instantly share code, notes, and snippets.

@olliebun
Created July 8, 2014 06:19

Revisions

  1. Daniel created this gist Jul 8, 2014.
    8 changes: 8 additions & 0 deletions gistfile1.apacheconf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName www.example.com

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </VirtualHost>