Technical Help & Discussion > Website Design & Programming
htaccess and AuthName win32 apache 2.0.48
Reno:
im on an xp machine and i must be missing something.
ive followed the steps on almost all the tutorials ive found for this but i think the problem is all the tutorials are for unix machines
ive made the .htaccess file contents:
--- Quote ---AuthName "Warning, Craphole Ahead"
AuthType Basic
AuthUserFile "C:/Program Files/Apache Group/Apache/htdocs/bob/passwd.txt"
Require valid-user
--- End quote ---
i used the htpasswd exe to make the password file and i placed it in the bob directory.
Ive also changed the httpd.conf file so it excepts other directives
--- Quote ---
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
--- End quote ---
ive added the directory to be configed in the config file
--- Quote ---<Directory "C:/Program Files/Apache Group/Apache/htdocs/bob/.htaccess">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
--- End quote ---
i don't know what im missing but when the server is running with this done it still lets me into the bob directory without prompting me for username and pass. Ive been working on this for a week now and can't find the problem.
all of this done with instructions from http://sniptools.com/vault/windows-apache-and-htaccess-authentication.htm
i looked at your site DJ red through it and didn't see any differences between the tutorial ive been using.
DJ:
To be honest Bob, all thats a bit too technical for me - sorry I can't be of more help.
Just a thought has the password for the site been saved in a list on your PC by anychance - so it bypasses the prompt?
Hope you get it sorted soon.
DJ
Reno:
i thought about that and i know ive never been prompted to put in a username or pass so i would guess not. I stress the word guess. Because to be honest i don't really know either. Ive just been experimenting with setting this up, im kinda flying blind too. If i figure all this out ill post the instructions for doing it in a win32 environment or what i was or wasn't doing to get it to work
Navigation
[0] Message Index
[*] Previous page
Go to full version