Ik heb dus een site op f2s.com (www.quibizz.f2s.com). Een directory heb ik afgeschermd afgeschermd, namelijk http://quibizz.f2s.com/users.
Mijn .htaccess file staat in de map /users/ (logisch), en ziet er zo uit:
AuthName "Alleen toegang voor A69'ers"
AuthType Basic
AuthUserFile /web/sites/295/quibizz/www.quibizz.f2s.com/users/pass/.htpasswd
require valid-user
ErrorDocument 401 /users/401.html
Als ik nu naar de map /users/ ga en dan cancel doe, bij het password invullen(dan krijg je 401 error), krijg ik deze mededeling:
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.
Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.19 Server at www.quibizz.f2s.com Port 80
Terwijl ik 401.html wil laten zien (het is de goede file trouwens dus dat is het niet)
Ik zie vast iets heel knulligs over het hoofd, maar weet iemand wat hier fout gaat. Ik wil namelijk gewoon een mooi html bestand laten zien. Zodat men lay-out niet gaar wordt.
Mijn .htaccess file staat in de map /users/ (logisch), en ziet er zo uit:
AuthName "Alleen toegang voor A69'ers"
AuthType Basic
AuthUserFile /web/sites/295/quibizz/www.quibizz.f2s.com/users/pass/.htpasswd
require valid-user
ErrorDocument 401 /users/401.html
Als ik nu naar de map /users/ ga en dan cancel doe, bij het password invullen(dan krijg je 401 error), krijg ik deze mededeling:
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.
Additionally, a 401 Authorization Required error was encountered while trying to use an ErrorDocument to handle the request.
--------------------------------------------------------------------------------
Apache/1.3.19 Server at www.quibizz.f2s.com Port 80
Terwijl ik 401.html wil laten zien (het is de goede file trouwens dus dat is het niet)
Ik zie vast iets heel knulligs over het hoofd, maar weet iemand wat hier fout gaat. Ik wil namelijk gewoon een mooi html bestand laten zien. Zodat men lay-out niet gaar wordt.