SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    Feb 2001
    Posts
    302
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've just learnt a bit about .htaccess files and got most things like redirecting to a custom error page etc working, however I am having a problem with the password part of it.

    I have the .htaccess and the .htpasswd files in a folder called phplib, which has all my admin pages in, the problem is that I am not sure what is meant by full home path.

    I have just got an apache server set up on my pc for testing and the url to get to the .htpasswd file is:

    http://localhost/phplib/.htpasswd

    is this not the full path, because it does not seem to work,
    anyway this is the path the tutorial uses (below) should I have a users file?

    AuthUserFile /users/boris11/public_html/other/.htpasswd

    Sorry this is such a dumb question but I am a bit new to programming, thanks for any help.

    -Neil

    ps - thanks to everyone that answered my question about security it was most useful.

  2. #2
    [Call me Bram] iBram007's Avatar
    Join Date
    Feb 2001
    Location
    Belgium
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this is for unix: /users/boris11/public_html/other/.htpasswd
    for windows its something like this: c:\\mywebsite\\phplib

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2000
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not that stupid ! - what you need is the full unix path - not 'http:' e.t.c.

    Instead an example would be (assuming your homepage is index.php) .....usr/local/apache/php/home/index.php


    cheers,

    jason


Bookmarks

Posting Permissions

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