Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Apr 2004 20:39:31 -0800
From:      "Noah" <admin2@enabled.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: .htaccess in subdir of /usr/home/<username>/public_html
Message-ID:  <20040419042907.M2237@enabled.com>
In-Reply-To: <408353A1.8010105@wingfoot.org>
References:  <20040418231354.M545@enabled.com> <40830EC8.2070608@wingfoot.org> <20040419010449.M37374@enabled.com> <40835069.3090108@wingfoot.org> <20040419041439.M56886@enabled.com> <408353A1.8010105@wingfoot.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> >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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040419042907.M2237>