Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess protection of /admin makes error


Guest

Recommended Posts

Posted

Hi !

 

I have tried to protect the admin-folder, using .htaccess and htpasswd, but every time I try to connect to the admin-folder, my username and password is not accepted ;)

 

ERROR-MESSAGE:

Authorization Required

This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

 

 

--------------------------------------------------------------------------------

 

Apache/1.3.33 Server at phasmatodea.dk Port 80

 

 

This is my .htaccess-file:

 

Deny from all

Options All

AuthType Basic

AuthUserFile /server/wwwroot/phasmatodea_dk/shop/htpasswd

Require valid-user

AuthName "Internet Shop - auth"

Satisfy any

 

I run an Apache-server on XinXP.

Safe_mode=on

Register_globals=on

 

Anyone knows how to fix this problem ???

Posted

OK, basic checks, but your .htpasswd file is in that location?

Your .htpasswd file has format user:encryptedpassword

Your password has been encrypted...?

 

Normally its one of those three probs.

Posted
OK, basic checks, but your .htpasswd file is in that location?

Your .htpasswd file has format user:encryptedpassword

Your password has been encrypted...?

 

Normally its one of those three probs.

 

1: My httpasswd dos NOT have a DOT infront, It's called httpasswd

2: It's placed in /server/wwwroot/phasmatodea_dk/shop/htpasswd

3: The password in tha httpasswd is encrypted (Should it not be that ? )

 

With these informations - some able to help sorting out this problem ??

Posted

k, it needs the dot in front! The password SHOULD be encrypted - put the dot in the name and it should work (you may also have to put the dot into the reference to .htpasswd in the .htaccess file to make sure it is referenced properly. Also, just to make certain, it should be called .htpasswd - exactly as that, no extra t's in the name as you have put above a couple of times.

Archived

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

×
×
  • Create New...