Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 6th, 2003, 01:25 PM
dafate dafate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 dafate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question .htaccess on apache 2.0.44

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!

Reply With Quote
  #2  
Old April 6th, 2003, 10:22 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 27 m 25 sec
Reputation Power: 8
Wink

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

Reply With Quote
  #3  
Old April 7th, 2003, 12:43 PM
dafate dafate is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 dafate User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy problem

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>

Reply With Quote
  #4  
Old April 8th, 2003, 05:09 PM
infamous-online infamous-online is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 404 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 27 m 25 sec
Reputation Power: 8
Re: problem

Quote:
Originally posted by dafate
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>


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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > .htaccess on apache 2.0.44


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek