|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
help with .htpasswd
hello all. i am a newbie apache user and am looking for some quick assistance with my httpd.conf file. I am trying to add a password list file and when I test the configuration file, I get an error saying:
'AuthUserFile takes 1-2 arguments, text file containg user IDs and passwords' I have a file called .htpasswd in my Apache install directory with the user names and encrypted passwords.... the code looks like the following user asswordAuthUserFile C:\Program Files\Apache Group\Apache2\passwd\ .htpasswd AuthGroupFile C:\Program Files\Apache Group\ AuthName "The incredibly safe realm" AuthType Basic require valid-user I am not using a Group file, just the .htpasswd file in the shown above code's directory...... What am I doing wrong? Any help would be great! Cheers! |
|
#2
|
|||
|
|||
|
how did you create the .htpasswd file?
also in your httpd.conf file did you change this line to allow all like the code below. # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All ![]()
__________________
Apache Expert |
|
#3
|
|||
|
|||
|
also you should use forward slashes instead of backward slashes
![]() AuthName "My Secured Page" AuthUserFile /blah/blah/.htpasswd AuthType Basic require valid-user ![]() |
|
#4
|
|||
|
|||
|
i just created a text file in notepad, typed in my code and named it .htpasswd.....i then put this plain text file in a folder under my apache2 default install directory (the same dir as htdocs) i changed the None parameter to All but I still get the same error
when i run the test configuration utility |
|
#5
|
|||
|
|||
|
i tried changing to forward slash and put in your code line by line....still same error. .htpasswd file is not working? here is my code in the .htpasswd file
$ user:encypted password AuthUserFile C:\Program Files\Apache Group\Apache2\passwd\ .htpasswd AuthGroupFile C:\Program Files\Apache Group\ AuthName "The incredibly safe realm" AuthType Basic require valid-user $ maybe this helps? |
|
#6
|
|||
|
|||
|
Quote:
post the code from your .htaccess file and your .htpasswd file? i think you have all your info in the .htpasswd file when that file should only contain the username and the password. another question, why do you have the $ signs in yoru script there? ![]() |
|
#7
|
|||
|
|||
|
i can't u/l the files b/c the forum says its an invalid file type though last time i checked these were text files so i don't know what is up with that....anyway, can i just email you my code instead of trying to post it?
thanks nate |
|
#8
|
|||
|
|||
|
i can't u/l the files b/c the forum says its an invalid file type though last time i checked these were text files so i don't know what is up with that....anyway, can i just email you my code instead of trying to post it?
thanks nate |
|
#9
|
|||
|
|||
|
jeesh I cant help because I dont really configure my Apache on my PC, but if you want to upload your file then compress it in .zip
__________________
You don't deserve to read my signature...yeah! That's it, keep walking...yeah walk away from me! That's it! Get out of my pub, you're barred! |
|
#10
|
|||
|
|||
|
Quote:
just copy the code in those files and just paste the text on here. let me show you let me paste my htaccess file ![]() my .htaccess file PHP Code:
see thats all you have to do ![]() |
|
#11
|
|||
|
|||
|
ignore the <a href="http://" target="_blank">http://</a> in the file it's supposed to show up like this
RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?corvette-online [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?192.100.0.00 [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?corvette-online/.vetnet [NC] #RewriteCond %{REQUEST_URI} !card\.gif$ #RewriteRule \.(gif|jpe?g)$ card.gif [L] RewriteRule !403\.shtml$ - [NC,F,L] |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > help with .htpasswd |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|