私は基本を持っていHTTP://x.x.x.x/repository
ます。Apacheを使用して、これに基本認証を実装しようとしています。以下の設定を追加してApacheを再起動しましたが、ブラウザを使用しhttpd.conf
てアクセスしても認証がありません。HTTP://x.x.x.x/repository
<Location "http://x.x.x.x/repository/">
AuthUserFile /etc/htpasswd/.htpasswd
AuthName "My Realm"
AuthGroupFile /dev/null
AuthType Basic
Require valid-user
</Location>
<VirtualHost *:80>
ServerAdmin your@email.address.com
DocumentRoot "/srv/www/httpd/htdocs"
ServerName yourdomain.com
ProxyPreserveHost on
ProxyPass /repository/ ajp://localhost:8009/repository/
</VirtualHost>