Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin htaccess


guiness

Recommended Posts

OK, I've been on this for two hours and have gone through the million pages in the forum on it. So what am I doing wrong? I'm set up local on winxp pro, running latest apache/php versions with OSC 2.2-

 

inside my admin folder-

htaccess:

AuthUserFile /apache/htdocs/.htpasswd

AuthName Admin

AuthType Basic

<Limit GET POST>

require user king

</Limit>

 

outside my admin folder-

htpasswd:

king:guf0jyb38NlK

 

I'm not presented with an access box... just goes straight to page. Any ideas?

Link to comment
Share on other sites

I'm set up local on winxp pro...

AuthUserFile /apache/htdocs/.htpasswd  

 

Wow! XP sure must have changes since Win2k. I still have to use directory letters (ie. C:/program files/apache group/apache2/htdocs/.htpasswd) to access my files.. I would much rather use the unix style though.. I guess I'll have to upgrade! :wink:

 

Try something like this:

=========================

AuthUserFile c:/Passwords/.htpasswd

AuthName "Localhost's Administration"

AuthType Basic

<Limit GET POST>

require valid-user

</Limit>

=========================

 

**NOTE** Storing your .htpasswd in htdocs is obsolutely CARELESS. Think about it.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...