Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
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:
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  
Old April 6th, 2003, 12: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, 09: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 21 m 10 sec
Reputation Power: 7
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, 11:43 AM
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, 04: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 21 m 10 sec
Reputation Power: 7
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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway