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:
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 January 29th, 2005, 02:17 PM
hrdchrgr hrdchrgr is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 hrdchrgr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 28 sec
Reputation Power: 0
Angry .htaccess issues


Can somebody give me some help?
I am trying to setup an .htaccess to password protect my web. I am trying to set this up on the following machine
Win2k3/Apache2/Mysql 4.x/PHP5

I have made an .htaccess files and a .htpasswd file, i dropped the .htaccess file into my directory to be secured. I have dropped the .htpasswd file in another folder above the /htdocs/ folder. I have created a cryptic password in the .htpasswd file. I have pointed my .htaccess file to the password file. I have made changed to my httpd.conf so "AccessFileName .htaccess" & " AllowOverride all". When i drop the .htaccess file in to my dir and attempt to hit the page I am not prompted with a login, I receive a "505 internal server error"

Is there other setting that I need to change in my httpd.conf file?
I even tried just created a new folder and dropping a single .html file with the .htaccess file and receiving the same 505 error. Here is my .htaccess file...

AuthType Basic
AuthName "Password Required"
AuthUserFile D:\Program Files\Apache Group\password\.htpasswd
Require valid-user


The content of the page that I am attempting to secure is all PHP.


Here's the error...
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@XXXX.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

I know that I must be on the right track because when I remove the .htaccess file from the dir I am able to hit the page with no problem.



I am ready to blow a gasket at this point... Anybody have any ideas?
Thanks

Reply With Quote
  #2  
Old January 31st, 2005, 08:24 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
I believe you might need forward slashes on your path... [yes, even in windows]
D:/Program Files/Apache Group/password/.htpasswd
possibly surrounded by quotes, i'm not sure.

did you use the password file generating program that came packaged with Apache?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > .htaccess issues


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