.htaccess and encryption

.htaccess and encryption

Posted by: gamerhk
Posted on: 2006-04-22 19:26:00

i just wonder what would i chmod my .htaccess for it to work?
i upload my own .htaccess and .htpasswd. they dun work.

second, it appear to me that dreamhost uses des8 to encryption, is it possible to change it to md5?

Re: .htaccess and encryption

Posted by: sdayman
Posted on: 2006-04-23 16:39:00

I've always gone to the Control Panel under Goodies->Htaccess/WebDAV to add password protection to my directories. At least that way you'll see what it should look like here. Then you can edit their files to your liking.

-Scott

Re: .htaccess and encryption

Posted by: gamerhk
Posted on: 2006-04-23 20:06:00

it chmod .htaccess to 444... i tried to chmod 744 on it and it won't work... my question is.. why?

Re: .htaccess and encryption

Posted by: sdayman
Posted on: 2006-04-23 20:18:00

Because PHP is running as you, as opposed to Apache, it's probably an issue of it being writable by you. Making it un-writable closes that security gap. Dunno if 544 will work, but 444 certainly makes sense.

-Scott

Re: .htaccess and encryption

Posted by: anonymous2
Posted on: 2006-04-24 03:59:00

> i upload my own .htaccess and .htpasswd. they dun work.

What are the symptoms? Could it be related to how uploaded?

Tags: htaccessencryptiondreamhosthtpasswdchmodmd5upload