Find the answer to your Linux question:
Results 1 to 2 of 2
I'm trying to a .htaccess file and i keep getting the following error:' ------------------ Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2005
    Posts
    2

    Problems with .htaccess


    I'm trying to a .htaccess file and i keep getting the following error:'


    ------------------
    Internal Server Error

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

    Please contact the server administrator, root@localhost 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.
    Apache/2.0.54 (Fedora) Server at www.hdanforth.com Port 80
    -----------------

    This is my .htaccess file:

    UserFile /var/www/.htpasswd
    AuthGroupFile /dev/null
    AuthName ByPassword
    AuthType Basic

    require user personal

    --------------------

    I'm not sure what other info to give, I'm useing FC4 and apache 2.0.54

    I checked that my apache config file, and it set to let me use .htaccess files and it is. Any other sugestions?

    Thanks in advance,

    Dan

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2005
    Location
    Hell
    Posts
    514
    You probably want something like this for your .htaccess file:
    Code:
    AuthType Basic
    AuthName "ByPassword"
    AuthUserFile /var/www/.htpasswd
    Require user personal
    Read this tutorial for more information: http://httpd.apache.org/docs/2.0/howto/auth.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •