.htaccess in subdir of /usr/home/<username>/public_html

Noah admin2 at enabled.com
Sun Apr 18 21:39:35 PDT 2004


> >there is still no cure at this point since i check the file permissions and
> >both .htaccess and .htpasswd are both world readable.  I even moved the
> >.htpasswd to the same subdirectory with world readable permissions and still
> >there is no password prompt from my browser.  I go directly to the directory
> >index of /usr/home/<username>/public_html/<subdir>/
> >
> >here are the permissions of the files:
> >
> >-rw-r--r--  1 <username>  <username>  101 Apr 18 16:09
> >/usr/home/<username>/public_html/<subdir>/.htaccess
> >
> >and
> >
> >-rw-r--r--  1 <username>  <username>  21 Apr 18 16:09
> >/usr/home/<username>/public_html/<subdir>/.htpasswd 
> >
> >any other ideas?
> >  
> >
> So when you go to http://yourserver/~yourusername/subdir it doesn't 
> prompt you for anything?
> 
> Check it against this:
> 
> 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

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

--- snip ---

now cat of /usr/home/<username>/public_html/<subdir>/.htpasswd

--- snip ---

glob:uKRB.ktQoL./I

--- snip ---

and now the file permissions

--- snip ---

ls -al .ht*
-rw-r--r--  1 <username>  <username>  124 Apr 18 21:33 .htaccess
-rw-r--r--  1 <username>  <username>   19 Apr 18 21:34 .htpasswd

--- snip ---

Please somebody hand me a clue stick?

from the /usr/local/etc/apache/httpd.conf

--- snip ---

AccessFileName .htaccess

#
# The following lines prevent .htaccess files from being viewed by
# Web clients.  Since .htaccess files often contain authorization
# information, access is disallowed for security reasons.  Comment
# these lines out if you want Web visitors to see the contents of
# .htaccess files.  If you change the AccessFileName directive above,
# be sure to make the corresponding changes here.
#
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

--- snip ---


- Noah



> 
> Best,
> Glenn
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list