1

.htaccess の std AuthUserFile ディレクティブによって保護されているプロジェクトがあります。

すべてが非常に単純で、別のサーバーではすでに問題ありません。これが私の内容です.htaccess

.htaccess:_

AuthName "Adminbereich"
AuthType Basic
AuthUserFile /srv/www/passwords/.htpasswd-office

<Files *.php>
require valid-user
</Files>

.htpasswd-officeアクセスします。電話http://user:pass@host/したら入ります。電話したらhttp://host/すぐにこのメッセージが届きます...

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

...ログインボックスが表示されていません。これの原因は何ですか?

これは、ここからの例のヘッダーです。http://www.pagetutor.com/keeper/mystash/secretstuff.html

HTTP/1.1 401 Authorization Required
Date: Thu, 01 Nov 2012 21:38:27 GMT
Server: Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
WWW-Authenticate: Basic realm="My Secret Area"
Accept-Ranges: bytes
Content-Length: 343
Content-Type: text/html

そして、これは私のヘッダーです:

HTTP/1.1 401 Authorization Required
Date: Thu, 01 Nov 2012 21:36:41 GMT
Server: Apache/2.2.20 (Ubuntu)
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1

魔法WWW-Authenticate: Basic realm="..."が抜けていて、その理由がわかりません...

標準のubuntu(11.10)Apache(2.2.20)を変更せずに使用しています...

4

0 に答える 0