Мое решение благодаря Graham:
<Location /dirname>
SSLVerifyClient none
SSLOptions +FakeBasicAuth
SSLRequireSSL
AuthName "name Authentication"
AuthType Basic
AuthUserFile /etc/httpd/stuff.passwd
require valid-user
RequestHeader set X-Url-Scheme https
</Location>
ProxyPass /dirname http://django.test/dirname
ProxyPassReverse /dirname http://django.test/dirname
На django.test я добавил это:
SetEnvIf X-Url-Scheme https HTTPS=1
после
WSGIScriptAlias /dirname /path_to_wsgi_script/django.wsgi