helpchrisplz
asked on
.htaccess Internal Server Error
hi experts
i get this error after i log in to the secure file:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@??????????? 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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
AuthUserFile "/.htpasswds"
AuthName "Enter Password"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
admin:password
the .htaccess file is in the folder i want to secure and the .htpasswd is in a folder named .htpasswds that is in the very top level that i can get to with filezilla.
and the secure file is callad admin inside public_html (public_html/admin)
i get this error after i log in to the secure file:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@??????????? 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.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
my .htaccess looks like this:
AuthUserFile "/.htpasswds"
AuthName "Enter Password"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
my .htpasswd looks like this:
admin:password
the .htaccess file is in the folder i want to secure and the .htpasswd is in a folder named .htpasswds that is in the very top level that i can get to with filezilla.
and the secure file is callad admin inside public_html (public_html/admin)
ASKER
hi ye i had a look in www folder and got the error_log any way it doesnt have any errors for today only some old php errors from last week.
i have used AuthUserFile "../../.htpasswds/.htpassw d" but its still giving the same error after i log in
i have used AuthUserFile "../../.htpasswds/.htpassw
What is the full path and file name of the file that contains the following?
Also, you're getting the server error *after* you log in? So you are prompted for username/pass and supply it and then get the error?
admin:password
Also, you're getting the server error *after* you log in? So you are prompted for username/pass and supply it and then get the error?
ASKER
yes it allows me to log in and then after submit it does the error.
the file that has admin:password inside it is called .htpasswd and i have put it in the ../../.htpasswds folder. as show on the file tree screen shot
i have also tested with the .htpasswd in the same folder as the one i want to secure and set the link to "../../public_html/admin/. htpasswd" inside the .htaccess file but it has the same error.
i have also used a program called Htpasswd Generator PRO to create the files for me but i get the same error so its must be the link or to do with my hosting?
the file that has admin:password inside it is called .htpasswd and i have put it in the ../../.htpasswds folder. as show on the file tree screen shot
i have also tested with the .htpasswd in the same folder as the one i want to secure and set the link to "../../public_html/admin/.
i have also used a program called Htpasswd Generator PRO to create the files for me but i get the same error so its must be the link or to do with my hosting?
Inside your login CGI script, it should be doing a redirect to the 'logged-in' page's URL. It is acting as if that redirect URL is invalid.
ASKER
hi after talking to hosting they say my link in the htaccess was bad here is what i have now
AuthName "log in"
AuthType Basic
AuthUserFile "/home/christop/public_htm l/admin/.h tpasswd"
Require valid-user
but now it just reloads the page and asks for the password 3 times then says Authorization Required. This server could not verify that you are authorized to access the document requested.
i am using the user and pass that i have in the .htpasswd file so not sure why it doent just log in ?
the .htpasswd looks like this:
admin:admin
this is the url of my secured area http://christophersowerby.com/admin
my hosts client area is down so i cant ask more about this over there :P
AuthName "log in"
AuthType Basic
AuthUserFile "/home/christop/public_htm
Require valid-user
but now it just reloads the page and asks for the password 3 times then says Authorization Required. This server could not verify that you are authorized to access the document requested.
i am using the user and pass that i have in the .htpasswd file so not sure why it doent just log in ?
the .htpasswd looks like this:
admin:admin
this is the url of my secured area http://christophersowerby.com/admin
my hosts client area is down so i cant ask more about this over there :P
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
was the link. my host is crap and gave me a bad link.
AuthUserFile "../../.htpasswds/.htpassw
(if the file is called .htpasswd within the .htpasswds directory)