Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing .htaccess-window

Status
Not open for further replies.

Roland

Programmer
Jul 29, 1999
43
DE
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
</


 
# changed the path from root to the subdir:
<Directory /usr/local/httpd/htdocs/lab>
--- sorry, there must be some interruption somewhere, here it continues:

AllowOverride All
</Directory>
.
.
Restarted the apache, restarted everything, but no login-box anywhere, no hint in
the errors-log-file.

Please, has anybody an idea what I have overlooked?
I am running a Suse Linux 6.4 box with the Apache 1.3.12

Thanks a lot!




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top