Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2003

    private.htm file???

    Hey all,
    Can Apache force a user to enter his/her username for a particular file on the Apache web server? For instance, we require that only particular users have access to a public yet private.htm file. Public as in, the authorized user can access via the WWW but private as in ONLY the authorized user can access the page via a login prompt. With all do respect, we know how to do this in Windows (No, I didn't just curse anyone) but can't figure out how to do this in Linux/Apache. Your help with this private.htm file issue will be greatly appreciated.


  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    It's very possible, and very easy. Unfortunately, I don't remember how to do it. I do know that you specify it with a directive in the .htaccess file, though, so check that out, if noone can tell you directly. The docs are available on

Posting Permissions

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