Hi folks,
i try to appear a login-window with the .htaccess stuff for three days now,
but my subdirectory is still open like a barn-gate. I can't get on it!
At first, I created following .htaccess-file under /usr/local/httpd/htdocs/lab :
AuthName MyName
AuthType Basic
AuthUserFile /usr/local/httpd/htdocs/lab/.htpasswd
Require user roland
#---end of file ---
then, I created with the htpasswd-tool the file /usr/local/httpd/htdocs/lab/.htpasswd:
roland:MiSelo0nBoBoQ
#---end of file ---
Restarted the apache, browsed to the lab-subdirectory but the longed login-window did
not appear, I still have unprotected access.
Checked the compiled-in modules then, the mod_auth is built-in. To make it shure,
I inserted the following into the httpd.conf:
ClearModuleList
AddModule <all modules listed with the httpd -l command, except the http_core>
.
.
AddModule mod_auth.c
.
.
# changed the path from root to the subdir:
<Directory /usr/local/httpd/htdocs/lab>
AllowOverride All
</
i try to appear a login-window with the .htaccess stuff for three days now,
but my subdirectory is still open like a barn-gate. I can't get on it!
At first, I created following .htaccess-file under /usr/local/httpd/htdocs/lab :
AuthName MyName
AuthType Basic
AuthUserFile /usr/local/httpd/htdocs/lab/.htpasswd
Require user roland
#---end of file ---
then, I created with the htpasswd-tool the file /usr/local/httpd/htdocs/lab/.htpasswd:
roland:MiSelo0nBoBoQ
#---end of file ---
Restarted the apache, browsed to the lab-subdirectory but the longed login-window did
not appear, I still have unprotected access.
Checked the compiled-in modules then, the mod_auth is built-in. To make it shure,
I inserted the following into the httpd.conf:
ClearModuleList
AddModule <all modules listed with the httpd -l command, except the http_core>
.
.
AddModule mod_auth.c
.
.
# changed the path from root to the subdir:
<Directory /usr/local/httpd/htdocs/lab>
AllowOverride All
</