Question about .htaccess

Question about .htaccess

Posted by: promocasino
Posted on: 2005-09-16 21:28:00

Hello,

I am using an CGI script that have an registration file to be able to add user to htpaswd
But what do I have to put after, on the .htaccess:
AuthUserFile (what else here)

I want to know the path..

I don't want to use the WebDav of dreamhost.. I want to do it myself..learning too ;)

Re: Question about .htaccess

Posted by: Atropos7
Posted on: 2005-09-17 00:26:00

See DreamHost Wiki - Password-protecting directories - Creating a .htaccess file



cool Perl / MySQL / HTML+CSS

Re: Question about .htaccess

Posted by: ardco
Posted on: 2005-09-17 02:08:00

Or see the 'ole kbase:

Using shell commands to password protect directories

https://panel.dreamhost.com/kbase/index.cgi?area=834&keyword=AuthUserFile

Various .htaccess samples and tutorials

https://panel.dreamhost.com/kbase/index.cgi?area=3083&keyword=AuthUserFile

Good luck,

BobS

Re: Question about .htaccess

Posted by: promocasino
Posted on: 2005-09-17 02:49:00

Well, do I need, for the path, to enter the domain?

E.G.

AuthType Basic
AuthUserFile /home/myusername/mydomain.com/.htpasswd
AuthName "My Private Area"
require valid-user

Also, what is the path for CGI script?

Thanks!


Tags: htaccesscgi scriptdreamhostwebdavpathadd