Apache2:重写引擎 HTTPS 之前进行 RADIUS 身份验证

Apache2:重写引擎 HTTPS 之前进行 RADIUS 身份验证

我尝试使用 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>

相关内容