1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

apache htpasswd problem?

Discussion in 'Apache' started by jeyoen77, Jul 25, 2005.

  1. #1
    hi to all,
    I'm a newbie to Apache2 and I'm using the version that comes with Suse 9.3 DVD.
    My problem is the htpasswd command that cannot be found when I type in a shell. I wonder why it is not found, do I need to install something or configure. Please help me I'm really don't know how to run this. I really need the htpasswd for my Subversion security access thru http.

    thanks in advance.
     
    jeyoen77, Jul 25, 2005 IP
  2. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #2
    You need to set up two files.

    1. you need to create .htaccess or, if it already exists, add the following lines to it:

    AuthUserFile /path/to/members/.htpasswd
    AuthGroupFile /path/to/members
    AuthName "protected-directory-name"
    AuthType Basic
    
    <Limit GET POST>
    require valid-user
    </Limit>
    
    Code (markup):
    2. you need to create .htpassword containing the following:

    username:encrypted-password
    Code (markup):
    all on one line like that.

    To create the password:

    http://www.kxs.net/support/htaccess_pw.html
     
    minstrel, Jul 25, 2005 IP