Help - Search - Members - Calendar
Full Version: htaccess and default files
The Planet Forums > Control Panels > Plesk
smack
I seem to have a problem in that no directories with htaccess files controlling access will return default files. Apache returns an authorization failure without ever prompting for user/pass.

I can see in my httpd.conf file that the DirectoryIndex line is there and the default files are correct.

I've tried adding DirectoryIndex directives to my htaccess files but that just causes a 500 Internal Server Error.

Being naive when it comes to plesk, I went searching in httpd.conf for virtual hosts, since I thought that maybe I just had to adjust the DirectoryIndex in there, but of course I was barking up the wrong tree.

Anyone know what's up?

Also, how does plesk manage virtual domains (e.g. which files should I be looking at, and is it safe to be looking at them?)

Thanks!
smack
P.S., when I specify the index filename in the URL, I am prompted for authorization and everything works fine.

that is:

http: //www.mydomain.com/dir - does not work
http: //www.mydomain.com/dir/index.php - does work
smack
Haha, I should ALSO add then when I remove the htaccess file, then default files are returned just fine.

My htaccess file is just:
CODE
AuthUserFile /path/.htpasswd

AuthGroupFile /dev/null

AuthName EnterPassword

AuthType Basic



<Files ~ ".(php|gif|html)$">

Require user username

</Files>


Pretty simple...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.