Forum Moderators: phranque
AuthType Basic
AuthName "sub folder name"
AuthUserFile /password file/my password file
Require User Me
and this is what I put in my httpd.config just below the (the following lines prevent .htaccess) section in my .config
<Directory "htdocs/sub folder name/"
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
and I have changed this entry a couple of times with the options, without sometimes. and nothing seems to work. Oh and yes I do have the AllowOverride all in my root. I seem to think that what I am trying to do is very simple, I just am not getting it.. Thank you for any and all help..
What information appears about this error in your server error log file?
BTW, in case it was not just a cut-and-paste error, the .config code above may have several problems in it. Just what is shown above should be:
<Directory "htdocs/sub folder name/">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
# ... any additional code ...
</Directory>
Jim
"GET /Sub%20Folder/****.html HTTP/1.1" 401 401
"GET /favicon.ico HTTP/1.1" 404 209
"GET /Sub%20Folder/****.html HTTP/1.1" 500 538
I put the ****.html but it is actually the web page I made.. I am not sure if I should be using the actual names of this.. Again, I am a noobie to Apache. And thank you so much for your help..
You can use real or example page names -- just don't use any that are so unique that they only appear on your site, or any that might offend anyone. It'd probably be a good idea to avoid 'pointing' anyone to your site until you get the password protection working properly... ;)
Jim