Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-02-2003 #1
- Join Date
- May 2003
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.
- 09-02-2003 #2
- 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 http://www.apache.org/.