Im trying to set up an authenticated page. For practice suppose I wanted to give access to the default page but secure a subdirectory of the default home directory.
homedir (anonymous access)
---> subdir ( plaintext authentication)
I edit the httpd.conf file and add this
AuthName "Secret Place"
Require user jughead
Now I go to the url of the web server and I get asked for a password(im not accessing the subdir)! And when i hit cancel at this page 3 times it lets me see the page anyway??!
Why? I actually want the opposite to happen. Authentication is needed to
get to a directory and any subdirectories. (This is my main question, does this actually happen if I protect a directory) What exactly is a realm as defined by AuthName? apache docs don't go into detail.
It has been a long time since I've done this ( or I've actively administer a web site since I've got very busy with my own business ) so I will just comment on the setting of yours.
[quote author=Blaqb0x link=board=4;threadid=5627;start=0#54101 date=1037667575]
The quotes are not needed. And in fact, it may be what cause it to ignore it. The correct way is
And make sure you've got the complete path of the directory ( or at least to what after Apache's document root directory ).Code:<Directory /complete/directory/of/file>