|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
HI!
I've got a problem! I've created .htacess and .htpasswd files, i guess they're correctly configured, but when i want login it doesn't accept the pass. does the apache httpd.conf file need some configuring according to .htaccess? error log: user xxx: authentication failure for "/folder": Password Mismatch. i tried the right pass, pass is encrypted in .htpasswd as needed. can anybody give me some tip? i would like to know how does a correct .htpasswd file look like. there is only 1 line like this: user:ahtvpkeldnght (just example - encrypted pass 13 symbols) in my .htpasswd maybe it isn't correctly filled. p.s. sorry for not so good english thanx! |
|
#2
|
|||
|
|||
|
i had this problem as well and i fixed it by uninstalling it and re-installing it.
could you post your htaccess file here sometimes it's what you have in that file that won't act right, so could you do that for me and i'll hopefully get everythign working for you. ![]()
__________________
Apache Expert |
|
#3
|
|||
|
|||
|
my .htpasswd (just example):
Dirsa:SdVc6DD28cl/k my .htaccess (just example): AuthUserFile /pass/.htpasswd AuthName "Restricted AREA" AuthType Basic <Limit GET> require valid-user order allow,deny allow from all </Limit> |
|
#4
|
|||
|
|||
|
Re: problem
Quote:
change it to this Code:
AuthName "My Secured Page" AuthUserFile /pass/.htpasswd AuthType Basic require valid-user no need to have the deny or allow part in the htacess since it will always require the username of the script. example if your name is "limit" then limit will be the only who can get into password protected areas of your site. also no need to have the limit part in there either. just the code i provided and you also if i were you i would put the htaccess file into the directory you intend to protect, cause if you put it in your main folder then you be prompted for a password everytime go to your site. also look in your apache bin folder and see if you see a file called htpasswd if so then follow the following steps and you will be on your way to protecting directories that you want to protect. once you see that file remember the address to where it's located like for example C:\Apache2\bin\htpasswd once you have that then do this open ms-dos if you are on a windows machine and type the following in below C:\>apache2\bin\htpasswd -c .htpasswd corvette -c means to create the .htpasswd file corvette is the username that will be required in order to gain access to a password protected directories. of course you can change the username to anything that you wish and after you have all of this type in C:\>apache2\bin\htpasswd -c .htpasswd yourownusername press enter and set your password you will be forced to set it twice and then it will create the file. remember when i told you to remember the address of where the htpasswd file is located because your newly created .htpasswd will be at. just cut it and paste it in whatever directory of your choosing. there you should be set now ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > .htaccess on apache 2.0.44 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|