About to shoot apache in the head ! (win32) htaccess

Sapilas

Member
Oct 28, 2001
77
0
0
:(Is it true or false:
1. Apache's .htaccess configuration does not work on a win32 system. (= ?????)
2. Apache's .htaccess configuration does work on a linux system. (= TRUE)

???????

If anyone in this planet managed to configure and make the basic Limit user of .htaccess thing work on a win32 box please paste configuration lines..

Paste .htpasswd & .htaccess that work.

Thanks..

PS. I have searched everywhere noone know the true... R we alone on this planet ?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please reply soon or else I am gonna kill the guy that thought of creating apache !
rolleye.gif
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Windows GUI doesn't like filenames that start with a . But if you use CLI tools on them it works fine.
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
change the default htaccess file name from .htaccess to something like ht.access or something.

It should work.

I'v managed to get htaccess to work on windows
 

Sapilas

Member
Oct 28, 2001
77
0
0
well I have been there . . done that . . . . Just to be sure I donot use the .htaccess file I include my configuration in the httpd.conf file..

I get the prompt to enter my details . .but never manage to authenticate correctly.
I use something like:

#~~~~~~~~~~~~~~my lines in the httpd.conf~~~~~~~~~~~~~~~~~~~~~~~~

<Directory "C:/nusphere/apache/htdocs/phpmysql">
AuthUserFile "C:/nusphere/apache/htdocs/phpmysql/htpasswd"
#AuthGroupFile "C:/nusphere/apache/htdocs/mysqlas/group"
AuthName Admin
AuthType Basic
AllowOverride Limit
<Limit GET>
require user a
</Limit>
</Directory>
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

and my htpasswd file is something like

a:password

There is a File in my /apache/bin directory called htpasswd.exe to create the encrypted passwords, so I guess that there is a way that this thing works but havn't seen anyone saying so..