![Apache2:重写引擎 HTTPS 之前进行 RADIUS 身份验证](https://linux22.com/image/757891/Apache2%EF%BC%9A%E9%87%8D%E5%86%99%E5%BC%95%E6%93%8E%20HTTPS%20%E4%B9%8B%E5%89%8D%E8%BF%9B%E8%A1%8C%20RADIUS%20%E8%BA%AB%E4%BB%BD%E9%AA%8C%E8%AF%81.png)
我尝试使用 HTTPS 和 Radius 身份验证设置反向代理。不幸的是,在重定向到 HTTPS 页面之前我没有收到身份验证查询。我做错了什么?
<VirtualHost *:80>
<Proxy *>
Require all granted
</Proxy>
ServerName xxx.xxx.de
DocumentRoot /var/www/html
ProxyPreserveHost On
<Location />
Options Indexes FollowSymlinks
AuthType Basic
AuthName "Apache Radius authentication"
AuthBasicAuthoritative Off
AuthBasicProvider radius
AuthRadiusAuthoritative on
AuthRadiusActive On
Require valid-user
</Location>
AddRadiusAuth Server_IP:1812 Token 5
ProxyPass /.well-known !
ProxyPass / http://xxx.xxx.xxx.xxx:80/
ProxyPassReverse / http://xxx.xxx.xxx.xxx:80/
RewriteEngine on
RewriteCond %{SERVER_NAME} =xxx.xxx.de
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>