beachwail
03-03-2005, 05:07 AM
Man oh man am I stressed out.
I have developed and administered about a dozen websites in the past few years. Most of them required some password-protected directories, so I learned how to set up an htaccess/htpasswd system that has always worked perfectly well.
Now I'm trying to do the same exact thing but it just will not work.
My Host is Netfirms, which claims they do not support .htaccess (could be the whole problem), but I have used them before with 100% success. They have an option in their cpanel to enable or disable htaccess....It IS enabled. Also, I can 'execute' the .htaccess file no problem (login/password window pops up) but it just will not accept my passwords.
I have tried about 4 different programs and scripts for encrypting my .htpasswd file. I've also never had previous problems with this....So this leads me to believe that .htaccess is not finding my .htpasswd file. I have tried putting it in the same directory as .htaccess, and in about 5 different directories...
I have set the .htaccess file AuthUserFile to nearly all possible values:
(htpasswd file is in www.mydomain.com/admin)
/www/admin/.htpasswd
www/admin/.htpasswd
/www/admin
www/admin/
/admin/.htpasswd
/admin
home/admin
home/www/admin
Basically all the "usual suspects".
I also found a script that allows me to find the FULL PATH:
<script type="text/javascript">
var scriptPath = '<!--#echo var="SCRIPT_FILENAME" -->';
alert (scriptPath);
</script>
So, with that newfound information I have also tried these AuthUserFile values:
/mnt/web_g/d30/s24/b021b919/www/admin
/mnt/web_g/d30/s24/b021b919/www/admin/.htpasswd
Is there something I am not trying?
Your help is most appreciated.
I have developed and administered about a dozen websites in the past few years. Most of them required some password-protected directories, so I learned how to set up an htaccess/htpasswd system that has always worked perfectly well.
Now I'm trying to do the same exact thing but it just will not work.
My Host is Netfirms, which claims they do not support .htaccess (could be the whole problem), but I have used them before with 100% success. They have an option in their cpanel to enable or disable htaccess....It IS enabled. Also, I can 'execute' the .htaccess file no problem (login/password window pops up) but it just will not accept my passwords.
I have tried about 4 different programs and scripts for encrypting my .htpasswd file. I've also never had previous problems with this....So this leads me to believe that .htaccess is not finding my .htpasswd file. I have tried putting it in the same directory as .htaccess, and in about 5 different directories...
I have set the .htaccess file AuthUserFile to nearly all possible values:
(htpasswd file is in www.mydomain.com/admin)
/www/admin/.htpasswd
www/admin/.htpasswd
/www/admin
www/admin/
/admin/.htpasswd
/admin
home/admin
home/www/admin
Basically all the "usual suspects".
I also found a script that allows me to find the FULL PATH:
<script type="text/javascript">
var scriptPath = '<!--#echo var="SCRIPT_FILENAME" -->';
alert (scriptPath);
</script>
So, with that newfound information I have also tried these AuthUserFile values:
/mnt/web_g/d30/s24/b021b919/www/admin
/mnt/web_g/d30/s24/b021b919/www/admin/.htpasswd
Is there something I am not trying?
Your help is most appreciated.