PDA

View Full Version : .htaccess woes!!



jkhills
2011-07-06, 12:55 PM
Yes I have encrypted the passwords and I have tried both DES and MD5 versions of those passwords. No Joy.

I have contacted support and they suggested that I 'telnet' into my site and generate the passwords using the commandline. That would have been great except telnet and ssh are both blocked by myhosting.com. So it appears that support does not know how this works either.

jkhills
2011-07-06, 06:29 PM
Greetings,

I'm trying to get my .htaccess and .htpasswd files functioning on my website to help provide some security.

I have read and used the article in the wiki (http://myhosting.com/kb/.htaccess) with no results

I believe the issue is the path to the 'authUserFile' which is given as an example. I don't know where I am in relation to the root of the drive.

I have tried:
AuthUserFile /usr/local/pem/vhosts/thewarriorsvoice.com/webspace/httpdocs/private/.htpasswd

when I put the two files on my webserver the password I chose does not work.

Has anyone got this to work? Can anyone provide any guidance?

suwunk
2011-07-06, 08:45 PM
Have you tried to encrypt your passwords?

username1:$1$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
username2:$1$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The password field is encrypted and you can not enter clear text. To calculate the DES-encrypted value of a password you can use this tool (http://www.sherylcanter.com/encrypt.php).

You can make these files using any text editor you choose (notepad for example) and then upload them to the /docs/secret folder on your Linux account.

myhosting Customer Support team will be happy to assist you with this. You can contact them at support@myhosting.com, or by phone at 1-866-289-5091

Cheers

suwunk
2011-07-06, 11:46 PM
Yes I have encrypted the passwords and I have tried both DES and MD5 versions of those passwords. No Joy.

I have contacted support and they suggested that I 'telnet' into my site and generate the passwords using the commandline. That would have been great except telnet and ssh are both blocked by myhosting.com. So it appears that support does not know how this works either.
I`ll submit your problem to myhosting staff, i hope that they can help you ASAP

Cheers