Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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