|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello. I cannot get the .htaccess to work with apache on windows! i've tried and tried but it doesn't work, so if anyone could help me i would be very happy!
here's my httpd.conf file: Code:
<Directory "C:/Apache Group/Apache/htdocs"> Options FollowSymLinks AllowOverride All </Directory> here's my .htaccess file (dir: C:/Apache Group/Apache/htdocs/.htaccess): Code:
AuthName "password required" AuthType Basic AuthUserFile C:/Apache Group/Apache/htdocs/.htpasswd require valid-user I used the htpasswd.exe in the C:/Apache Group/Apache/bin/ directory to create the .htpasswd file. As all of us can see, this is not standard DES encryption. I got a message when creating the file in DOS prompt: "Automatically using MD5 format on Windows." and then the "enter new password" and then the "re-enter new password". here's my .htpasswd file (dir: C:/Apache Group/Apache/htdocs/.htpasswd): Code:
tommyj:$apr1$P75.....$yGZOTD9Ay.MUgjA6/yr30. ok, so when i now go http://localhost/ no password prompt appears! what is wrong? please help -me |
|
#2
|
|||
|
|||
|
Hello Tommyj, remember me?
![]() Yes, you are right about Windows is using MD5, not DES. Anyway, in Windows sometime have the problem to put .htaccess in the htdocs directory, so try do it in the sub-directory. Also, you should try to add Limit first. Look at below. AuthName "password required" AuthType Basic AuthUserFile C:/Apache Group/Apache/htdocs/.htpasswd <Limit GET POST> require valid-user </Limit> Hope, it helps! Cheers, Mezz |
|
#3
|
||||
|
||||
|
>>AuthUserFile C:/Apache Group/Apache/htdocs/.htpasswd
You have to put path inside double quotes, such as AuthUserFile "C:/Apache Group/Apache/htdocs/.htpasswd" The space between "Apache Group" confuse. Mezz, If you do not specify the Limit clause all methods are "limited".
__________________
My article: mod_rewrite: No More Endless Loops! Last edited by pippo : January 30th, 2002 at 01:04 AM. |
|
#4
|
|||
|
|||
|
thanks mezz and pippo!
it works now, in a sub-directory. it is not possible to make it work in the server root dir? anyway, mezz! yes i remember you! long time man! 'sup? You on icq sometime? ok, thanks alot! -me |
|
#5
|
|||
|
|||
|
Re: thanks!
Great, your welcome!!
![]() >> it is not possible to make it work in the server root dir? Well, I don't really know if it will working in Linux/BSD too. I guess, we will have to read at apache.org's docs about htaccess to see if it can be done in the root directory. >> anyway, mezz! yes i remember you! long time man! 'sup? You on icq sometime? I am doing great and have been play with my FreeBSD box a lot. I am learning many things on FreeBSD. Yes, I leave ICQ on all the time. It's 68435360.. Your welcome again, Mezz |
|
#6
|
||||
|
||||
|
The settings inside .htaccess works into the doc root directory too.
( I just tried them with my winnt ) You could clear the cache of your browser ( are you using IE ? ). |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > apache on windows and .htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|