Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:18:25+00:00 2026-05-28T16:18:25+00:00

I have been reading through what seems to be a good tutorial on rest

  • 0

I have been reading through what seems to be a good tutorial on rest based authentication.

I am trying to use this as an addition to access to website cms (held out of accessable web root).

As in when the used is directed to the cms index i wish to used this basic form of authentication. Once the user navigates to any section then the my default php authentication system will kick in, so that certain users may only access certain functions in the cms.

What i dont understand though, is why the following code block, when placed in my .htaccess file, causes the entire website to produce a 500 error…

<Files .login>
AuthType Digest
AuthNAme "Authentication Required"
AuthDigestFile /usr/home/myDomain/includes/htpasswd/admin/.htdigest
Require valid-user
</Files>

I have tried a similiar test using the basic access feature, but decided that this approach would be a bit more secure, as an addition. Whereas i used the htpasswd.exe program from apache to create a .htpasswd file that i could use to authenticate basic access. This worked okay, but i could not figure out how to apply this type of authentication to the the cms index through the .htaccess file.

I have gone about creating a file, using the htdigest.exe program from apache, to create a file called .htdigest.

Its’ contents are as follows:

testUser:Authentication Required:cd7h62051449100elk3c463eae6251f5

Now, with all this set up, i have followed the instructions in the mentioned artice, to try to achieve a instance where once a user clicks on a link with the href attribute “.login” in it, they are directed to my cms (auth required). This is the explaination by the author:

So there is no .login file, it’s just a URL that will trigger
authentication because accessing this URL requires a user to be
authenticated.

Now for some reason when i try to load any page on my site, with this block in the .htaccess, i get a 500 error, when i should actually be getting the authentication box?

But this is were i am confused, as i assume this block would only have an effect in the instance of the user clicking on the link with the “.login” href…

I have not added the futher block to direct the user to the index page when authentication is valid, just this block, and the two additional blocks mentioned by the author.

Would someone be able to explain what is causing this reaction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:18:27+00:00Added an answer on May 28, 2026 at 4:18 pm

    Based on what the error_log says, if you are using Apache 2.2.x, try changing AuthDigestFile to AuthUserFile. You might also then encounter file path differences depending on your OS; follow any new error_log messages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been reading up on this, and it seems that if you use
I have been reading through this wonderful website regarding the recommended Python IDEs and
I have been reading through Intuit's new IPP Federated App documentation. I am trying
I have been reading through the C++ FAQ and was curious about the friend
I have been reading through the CodePlex supported open source licenses, i couldn't quite
I have been reading through the documentation on the JavaScriptMVC framework and it looks
i have been reading this interesting article which is increasing my every growing confusion
I have been reading through a few articles on PDO and they seem to
I'm trying to improve my Javascript coding style and have been reading that it's
I think have a good feel to this based on my research but would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.