OK, I've been on this for two hours and have gone through the million pages in the forum on it. So what am I doing wrong? I'm set up local on winxp pro, running latest apache/php versions with OSC 2.2-
inside my admin folder-
htaccess:
AuthUserFile /apache/htdocs/.htpasswd
AuthName Admin
AuthType Basic
<Limit GET POST>
require user king
</Limit>
outside my admin folder-
htpasswd:
king:guf0jyb38NlK
I'm not presented with an access box... just goes straight to page. Any ideas?
Latest News: (loading..)
Admin htaccess
Started by guiness, Sep 17 2002 08:34 PM
8 replies to this topic
#1
Posted 17 September 2002 - 08:34 PM
#2
Posted 17 September 2002 - 08:57 PM
Quote
I'm set up local on winxp pro...
AuthUserFile /apache/htdocs/.htpasswd
AuthUserFile /apache/htdocs/.htpasswd
Wow! XP sure must have changes since Win2k. I still have to use directory letters (ie. C:/program files/apache group/apache2/htdocs/.htpasswd) to access my files.. I would much rather use the unix style though.. I guess I'll have to upgrade! :wink:
Try something like this:
=========================
AuthUserFile c:/Passwords/.htpasswd
AuthName "Localhost's Administration"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
=========================
**NOTE** Storing your .htpasswd in htdocs is obsolutely CARELESS. Think about it.
#3
Posted 17 September 2002 - 09:00 PM
I'll give it a try. Thanks
Yah, my password file will not reside in the web area when it's uploaded. I figure I need to get it working first....
Yah, my password file will not reside in the web area when it's uploaded. I figure I need to get it working first....
#4
Posted 17 September 2002 - 09:07 PM
OK, set up "passwords" folder and made changes to .htaccess.
Still opens page without requesting user/pass. My Apache install is all default, is there something there I need to be looking at?
Still opens page without requesting user/pass. My Apache install is all default, is there something there I need to be looking at?
#5
Posted 17 September 2002 - 09:08 PM
Make sure in httpd.conf you set:
AllowOverride All
AllowOverride All
#6
Posted 17 September 2002 - 09:09 PM
Don't forget to RESTART Apache after editing httpd.conf. You must do this upon any changes to httpd.conf , php.ini , showering, etc.
#7
Posted 17 September 2002 - 09:15 PM
OK, maybe this is it. Am I at the right place?
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
it should read?
<Directory />
Options FollowSymLinks
AllowOverride ALL
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
it should read?
<Directory />
Options FollowSymLinks
AllowOverride ALL
</Directory>
#8
Posted 17 September 2002 - 09:16 PM
actually I'm finding more instances of "allow overide none"....
#9
Posted 17 September 2002 - 09:24 PM
OK, got it.
The allowoveride none was a stand alone line. Changed it to ALL and all is good. Thanks! I must have tried every single possible combination of peoples ideas on this one.
The allowoveride none was a stand alone line. Changed it to ALL and all is good. Thanks! I must have tried every single possible combination of peoples ideas on this one.









