FreeHostia Forums
https://forum.freehostia.com/

path for .htpasswd
https://forum.freehostia.com/viewtopic.php?f=7&t=375
Page 1 of 1

Author:  sootha10 [ Tue Aug 01, 2006 12:21 pm ]
Post subject:  path for .htpasswd

Hi,

I want to create a own .htaccess file and .htpasswd file. But I have one problem. What's the path for the .htacceess file to find the .htpasswd file?

This is what I have tried:

Code:
AuthType Basic
AuthName "SooS 't Harde administratie"
AuthUserfile "./home/users/sootha10/www/.htpasswd"
Require valid-user


and this:

Code:
AuthType Basic
AuthName "SooS 't Harde administratie"
AuthUserfile "./home/www/sootha10.freehostia.com/.htpasswd"
Require valid-user


But nothing works. Who knows the path???

Thank u, Maurits

Author:  Bob [ Wed Aug 02, 2006 2:18 am ]
Post subject: 

Try protecting your directories using Password Protected Areas section in your Account's Control Panel. Note that if you are trying to password protect a folder, there should not be an .htaccess file in it.

Author:  sootha10 [ Wed Aug 02, 2006 9:19 am ]
Post subject: 

When I post this post the PPA doesn't work, I received an error. But now it works so it's ok!

Author:  Bob [ Thu Aug 03, 2006 3:45 am ]
Post subject: 

sootha10 wrote:
When I post this post the PPA doesn't work, I received an error. But now it works so it's ok!


I am glad to read that your problem is fixed! :lol:

Author:  donut [ Fri Apr 10, 2009 10:58 am ]
Post subject: 

I know this topic is pretty old, I need assistance with finding the correct path as well...

.htaccess contains the following lines

AuthName "Restricted Area"
AuthType Basic
AuthUserFile ./home/www/workathometoday.freehostia.com/.htpasswd
AuthGroupFile /dev/null
require valid-user

.htpasswd contains the following lines
testusername:password

I uploaded both files .htaccess and .htpasswd to the directory of /home/www/workathometoday.freehostia.com, when I open http://workathometoday.freehostia.com it prompts for login username n pass. Have entered them in, unable to login in?

It appears my .htaccess file can't find the path to the .htpasswd

Anyone help please.

Wae.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/