# This needs to be the first configured virtualhost on port 80 so that
# requests to http://localhost hit this rather than any other vhost
<VirtualHost *:80>
  <Location />
    SetHandler server-status
    Require ip 127.0.0.1
  </Location>

  Redirect temp / https://www.{{ domain }}/
</VirtualHost>

<VirtualHost *:443>
  SSLEngine On
  <Location />
    SetHandler server-status
    Require ip 127.0.0.1
  </Location>

  Redirect temp / https://www.{{ domain }}/
</VirtualHost>