Password est duplex query SSL

Et haec constellatio semper habet iniucundum parte effectus: Si defendat vestri site cum htaccess / htpasswd et simul opprimere per SSL connexionis, non semper necesse est intra idem password (exemplum enim http: et post felix noti http). Cum auxilium de configuratione sectiones introduced in Apache 2.4: facilius potest esse quaestio de hac quaestione.


# SSL erzwingen
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Authentifizierung (nur bei verschlüsselten Verbindungen)
<If "%{HTTPS} == 'on'">
AuthUserFile /path/to/.htpasswd
AuthName "Interner Bereich"
AuthType Basic
require valid-user
</If>
Back