|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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? |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > .htaccess issues |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|