Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 8th, 2000, 09:49 AM
DiPesa DiPesa is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Posts: 15 DiPesa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm trying to get a password lock on some directories on my Apache 1.3.12 server. My .htaccess looks like

AuthName "Accesstest"
AuthUserFile /home/dipesa/public_html/.htpasswd
AuthType Basic
require valid-user

The file /home/dipesa/public_html/.htpasswd
exists, but doens't seems to be accessed. Without a dialog box I get the message

"Forbidden
You don't have permission to access /~dipesa/index.html on this server."

Who can come up with an explanation.

ciao,
DiPesa

Reply With Quote
  #2  
Old November 8th, 2000, 11:16 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Check out your httpd.conf for the following block:
<Directory /home/*/public_html>

Then go to -> http://www.apache.org/docs/mod/core.html#allowoverride

You should see you need "AllowOverride All" or "AllowOverride AuthConfig".

In addition, make sure you have such line "AccessFileName .htaccess" in your httpd.conf. And make sure your public_html directory is chmod'ed 755.

[This message has been edited by freebsd (edited November 08, 2000).]

Reply With Quote
  #3  
Old November 8th, 2000, 06:30 PM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
you might also want to get your .htpasswd file out of your document root and move it up a level .... so people can't grab your .htpasswd file via your webserver

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > .htpasswd doesn't get accessed???


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT