.htpasswd and .htaccess - security-path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lothar Bayer

    .htpasswd and .htaccess - security-path

    Hallo,

    I want zu install a security-path with .htaccess and .htpasswd on my privat
    local machine (for test-reason)
    I succeeded with a .htaccess and Error 404-adressing a special Error-page
    with menu.
    SSI and PHP are accessible..
    My Apache is installed in path C:\Apache2\
    My homepage is in D:\Daten\htdocs \effektiv\famil ienzentrum.com\
    and is named http://fzt.local/

    I created a new directory as
    D:\Daten\htdocs \effektiv\famil ienzentrum.com\ geheim\ where I want to put the
    ..htpasswd and .htaccess
    This path shall be the security-path.
    I think, that I should not put password-file there, but for testreason it is
    ok.

    with a utility I named (and with htpasswd.exe the same) this path as
    "geschuetzt "
    Loginname (User) "geheim"
    password "takatuka71 382"

    so I got 2 files
    ..htaccess
    AuthUserFile D:/Daten/htdocs/effektiv/familienzentrum .com/geheim/.htpasswd
    AuthName "geschuetzt "
    AuthType Basic
    require valid-user

    ..htpasswd
    geheim:$1$TVX0o gEG$5mrLzYr/bceOinejlH8v.1

    I put both files in path
    D:/Daten/htdocs/effektiv/familienzentrum .com/geheim/

    when adressing http://fzt.local/geheim/index.php - I correct get the window
    for input of user and Password.
    But when I give user=geheim, and password=takatu ka71382, the security-window
    does not accept those values.

    What is wrong here?
    Who may help me please?


  • Raj Shekhar

    #2
    Re: .htpasswd and .htaccess - security-path

    "Lothar Bayer" <lothar-bayer@arcor.de> writes:[color=blue]
    >
    > when adressing http://fzt.local/geheim/index.php - I correct get the window
    > for input of user and Password.
    > But when I give user=geheim, and password=takatu ka71382, the security-window
    > does not accept those values.
    >
    > What is wrong here?
    > Who may help me please?[/color]


    Check the Apache's error log files. They will tell you why your login
    is failing.
    --
    Raj Shekhar Y! : Operations Engineer
    MySQL DBA, programmer and slacker Y!IM : lunatech3007
    home : http://rajshekhar.net blog : http://rajshekhar.net/blog/

    Comment

    • Lothar Bayer

      #3
      Re: .htpasswd and .htaccess - security-path

      > Check the Apache's error log files. They will tell you why your login[color=blue]
      > is failing.[/color]

      [Sat Mar 19 22:36:49 2005] [error] [client 127.0.0.1] user geheim:
      authentication failure for "/geheim/": Password Mismatch
      127.0.0.1 - geheim [19/Mar/2005:22:36:49 +0100] "GET /geheim/ HTTP/1.1" 401
      477

      that is in errorfile
      ErrorDocument 401 /error/HTTP_UNAUTHORIZ ED
      477 ???
      username is geheim
      password is takatuka71382

      i constructed many times new pw and user.
      is it an Apache problem?

      <Directory "D:/Daten/htdocs/effectiv/familienzentrum .com">
      AllowOverride FileInfo AuthConfig Limit
      Options MultiViews Indexes SymLinksIfOwner Match IncludesNoExec
      AllowOverride All
      <Limit GET POST OPTIONS PROPFIND>
      Order allow,deny
      Allow from all
      </Limit>
      <LimitExcept GET POST OPTIONS PROPFIND>
      Order deny,allow
      Deny from all
      </LimitExcept>
      </Directory>


      <VirtualHost 127.0.0.1>
      DocumentRoot "D:/Daten/htdocs/effektiv/familienzentrum .com"
      ServerName fzt.local
      ErrorLog logs/familienzentrum .com_log
      CustomLog logs/familienzentrum .com_log common
      AccessFileName .htaccess
      </VirtualHost>

      any Idea?

      thanks for now.
      Lothar


      Comment

      Working...