Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with .htaccess for admin!!!


deftonez

Recommended Posts

Posted

hey. ive installed oscommerce. its up and running. but now i just want to the admin area to be a little secure. so i found out about .htaccess. and it seems so simple. but it isnt working!!!!!!!!!

the user/pass pops up. but it isnt the one in the .htpasswd file. it says incorrect password.

i dunno why. maybe its the "full server path" is wrong or something. but here's what i have for the .htaccess file:

 

//

 

AuthUserFile /home/anucci/catalog/admin/.htpasswd

AuthGroupFile /dev/null

AuthName EnterPassword

AuthType Basic

 

require user dennis

 

//

 

and the .htpasswd file:

 

//

 

dennis:dennis

 

//

 

no extra spacing anywhere. they are both uploaded to /anucci/catalog/admin/

i want the whole admin folder to be protected.

 

and advice??????

 

if you want access to the server. to see for yourself, and even help me out! it would be greatly appriciated. just have AIM or yahoo...

 

thank you.

dennis

 

AIM: xfourdegreesx

yahoo: deftonez_69xx

Posted

Syntax should be:

 

<Limit GET POST>
require user dennis
</Limit>

 

And your password is encrypted correct?

 

Also, it is best to not store the .htpasswd file in the same folder that you want to protect. Best to put it in the root folder below any web accessable folder.

I'd rather be flying!

Posted

didn't work :(

i dont care about excryption just yet. i just want it to work first. i will after.

 

 

any more advice?

Posted

ah, but that's the problem. There is no choice of to encrypt or not to encrypt. You must encrypt your password for .htpasswd to work.

I'd rather be flying!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...