私のApache 2構成には、VirtualHost
次のようなものがあります。
<VirtualHost *:80>
ServerName sub.domain.com
# username:password sent on to endpoint
RequestHeader set Authorization "Basic dXNlcm5hbWU6cGFzc3dvcmQ=="
ProxyPass /xyz http://192.168.1.253:8080/endpoint
ProxyPassReverse /xyz http://192.168.1.253:8080/endpoint
<Location /xyz>
# This needs to let users through under the following circumstances
# * They are in 192.168.1.0/24
# * They have a valid user in a htpasswd file
# So what goes here?
</Location>
</VirtualHost>
ネットワーク上の別のサーバー (エンドポイントと呼びます) へのリバース プロキシとして仮想ホストを使用しています。
sub.domain.com
ネットワークブラウジング内のユーザーが自動的にエンドポイントにサービスを提供できるようにする構成を見つけようとしています。ただし、ネットワーク外のユーザーには資格情報の入力を求める必要があります
エンドポイントには、RequestHeader (必要) を使用して非表示にしたパスワードが必要です。外部ユーザーにプロンプトを表示する必要があるパスワードは DIFFERENT であり、ファイルからユーザー リストを取得する BasicAuth である必要がありhtpasswd
ます。