newbie: problem with .htaccess

Giganews Newsgroups
Subject: newbie: problem with .htaccess
Posted by:  Jivanmukta (jivanmuk…@poczta.onet.pl)
Date: Tue, 29 Sep 2009

Hello,
I have little experience with Apache.
I want to use SSL for C:\Program Files\Apache Software Foundation
\Apache2.2\htdocs
ieruchomosci-ogloszenia\secure folder. I created
denial.html page in this folder and .htpass file. In .htaccess I have
such lines:

ErrorDocument 401 htdocs/nieruchomosci-ogloszenia/secure/denial.html
AuthUserFile htdocs/nieruchomosci-ogloszenia/secure/.htpass

Now I can log on with data from .htpass.
The problem #1 is that I don't understand why I had to enter "htdocs"
before /nieruchomosci-ogloszenia/secure/.htpass.html. Without this I
could not receive login dialog.
The problem #2 is that when I press ESC in login dialog I can see

htdocs/nieruchomosci-ogloszenia/secure/denial.html

path as text in the browser instead of redirection.
Please help. Thanks in advance.

Replies