I've got a server with Varnish in front of Apache in front of Drupal.
What I'd like to do is redirect my login form to https (easy enough), then redirect all logged-in (authenticated) users to https all the time, while having anonymous visitors redirected to http all the time (for performance reasons).
I don't want authenticated users to have a mixed-mode experience if they click on an absolute link to http://mysite.com/some/page -> so that's the reason for always redirecting authenticated users to https if protocol is not https.
Is it possible to do something like this using some combination of Varnish + Apache configuration? Or is the only solution here to go https all the time for all visitors (which is an unnecessary performance hit for all those anonymous visitors).
For point of reference, I'm using a Varnish vcl based on this default Drupal-sensitive example provided by Four Kitchens: https://fourkitchens.atlassian.net/wiki/display/TECH/Configure+Varnish+3+for+Drupal+7