Hello all,
I wonder if you could help me out please
I am having a slight problem. I have re-read the documentation and carried out countless google searches with no success.
I've installed oScommerce locally on my winXP pro PC. I have no problem with the installtion at all. mySQL database etc all works fine.
However, I am having problems trying to passwod protect my admin directory.
What i've done so far:
I put the .htaccess file inside the admin directory I want to protect with the following:
(Its not very clear if your doing this on your own web server locally.)Code:AuthType Basic AuthUserFile /home/user/passwords/.htpasswd Authname Login require valid-user
The next step. I do in command promt:
It creates the file, but where do I put this .htpasswd file?Code:htpasswd -b -c .htpasswd user pass to create Username: User and Password: Pass
The main problem i'm having now is that when I try to access the Admin directory/page, IT DOES ask me for the username and password, but doesn't accept the username and password I type, so i'm thinking i've put the .htpasswd in the wrong place.. do you know where this file should go if your running Apache locally and not on a real web host?
Also where should the .htaccess file be pointing to? I've tried many variations, with no luck.
Thanks!![]()




LinkBack URL
About LinkBacks








Bookmarks