Skip to content

Instantly share code, notes, and snippets.

@ishansharma
Created January 30, 2017 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishansharma/0dc2e2dcf7fc05ad8351ebed3f4ee6a7 to your computer and use it in GitHub Desktop.
Save ishansharma/0dc2e2dcf7fc05ad8351ebed3f4ee6a7 to your computer and use it in GitHub Desktop.
Redirect http traffic to https on apache2
<VirtualHost *:80>
ServerName local.example.com
DocumentRoot /vagrant
Redirect permanent / https://local.example.com/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment