Home » Htaccess Tools » Questions regarding htaccess » Apache httpd.conf / .htaccess issues....
Apache httpd.conf / .htaccess issues.... [message #485] Tue, 18 July 2006 16:11 Go to next message
Dmacman  is currently offline Dmacman
Messages: 1
Registered: July 2006
Hi All,

I am setting up our Windows 2003 Server and strugling with the Apache directory/.htaccess issues.

In my httpd.conf I have....

Quote:

<Directory "D:/Program Files/Apache Group/Apache2/htdocs/phpMyAdmin">
AllowOverride All
Options All
</Directory>


Which is the directory on my server I am 'trying' to protect (which is where my .htaccess file resides).

In my .htaccess file I have....

Quote:

AuthType Basic
AuthName "phpMyAdmin Secure Area"
AuthUserFile D:/Program Files/Apache Group/Apache2/.htpasswd
Require valid-user



Which is where I have my .htpasswd file.

When I browse that directory I get "500 Internal Server Error" and cannot see why it is not working.

If I delete the .htaccess file, I can get to that directory OK.

Any ideas, or does someone see where I messed up??

Thanks,

Don
Apache httpd.conf / .htaccess issues.... [message #499] Thu, 20 July 2006 14:49 Go to previous message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Try putting the path to .htpasswd in AuthUserFile in quotes like you did in Directory.

Anyway, have you considered using phpMyAdmin's own password protection? It is safer than Basic Authentication with .htaccess. See "cookie" authentication at http://www.phpmyadmin.net/documentation/#authentication_modes
Previous Topic:2 password files 1 htaccess file?
Next Topic:Foreign IPs
Goto Forum:
  


Current Time: Sat May 17 07:39:59 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software