.htaccess in subdir of /usr/home/<username>/public_html
admin2 at enabled.com
Thu Apr 22 20:30:10 PDT 2004
On Tue, 20 Apr 2004 11:40:51 +0100, Dick Davies wrote
> * Glenn Sieb <ges at wingfoot.org> [0434 14:34]:
> > Noah said the following on 4/19/2004 12:39 AM:
> > >>AuthType Basic
> > >>AuthUserFile htpasswd.file.location.and.name.here
> > >>AuthName "Something to make sense"
> > >>require valid-user
> > >thanks glen - looks like this is still not working. No password Prompt
> Maybe the browser is caching the credentials? What do the lines in
> access.log/error log look like?
really good questions.
I even exitted all the browsers and restarted to make sure the credentials
were not saved. there are no errors ending up in the error or access log files.
> > >here is what I did:
> > >
> > >cat of /usr/home/<user_name>/public_html/<subdir>/.htaccess
> > >
> > >--- snip ---
> > >
> > >AuthType Basic
> > >AuthUserFile /usr/home/<username>/public_html/<subdir>/.htpasswd
> > >AuthName "Protected Area"
> > >require user glob
> That syntax is fine.
> How did you create '/usr/home/<username>/public_html/<subdir>/.htpasswd'?
> > Ok.. first off: Is there a user named "glob" in that .htpasswd file?
> > Secondly, can you check that you have the module mod_userdir.c loading?
> The directory is being served so UserDir is obviously working.
yes it appears that way. I can see its contents.
> The permissions of the files were not the same in both of Noahs
yup I changed to the following:
from the directory /home/noah/public_html/<subdir>
-rw-r--r-- 1 <username> <username> 126 Apr 20 09:37 .htaccess
-rw-r--r-- 1 <username> <username> 19 Apr 18 21:34 .htpasswd
> What user and group does apache run as?
> Give us an ls -l of both .htaccess and .htpasswd again, please.
look above please.
> The advertisement is the most truthful part of a newspaper
> -- Thomas Jefferson
> Rasputin :: Jack of All Trades - Master of Nuns
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions