- Joined
- Sep 4, 2009
- Messages
- 11
- Reaction score
- 0
- Points
- 1
- Location
- London
- Your Mac's Specs
- iMac, iPhone, iPod
I posted a few days ago about password protecting directories within a site for clients to view work progress etc..... was recommended by a few people (here and elsewhere) to use .htaccess and .htpasswd files.
I've had endless trouble and after 4 solid days of banging my head into a brick wall, I'm wondering whether anyone here might be able to tell me what on earth I am doing wrong.
I have upgraded my hosting package to one that I am assured supports CGI scripting, and everyone at the helpdesk tells me there is no reason why this is not working.
When I try to open up the page a drop down box appears for username and password. So far, so good. I enter the details........ click ok, and I get diverted to a 500 internal server error message screen.
I am guessing that the problem could well be, that the .htaccess file possibly has the incorrect route to the .htpasswd file. Does that sound like the case? The server is obviously picking up the htaccess file but then loses it from the point where it needs to communicate with the password file?
I've been given three different options as to what the file path is by the host, but without truly knowing my stuff, it's very tough for me to tell them to double check things when I think they are giving me the wrong info. A couple of months ago, they upgraded their servers so all the info they were giving out was wrong. It took me 2 days to discover that!
Just for your info..... my .htaccess file reads:
AuthUserFile file/path/to/.htpasswd
AuthName "Secure Client Area"
AuthType Basic
require user MarkWallis
And the .htpasswd is simply
MarkWallis:encryptedpassword
I encrypted it on a recommended website...... any chance it's not encrypting it properly and that is what's causing the trouble?
Also, I have heard that there is a small piece of PHP scripting that I can create a file with, upload onto the server to find out what the true path is - anyone know how that works, because if I'm getting loads of different info, it might be down to me to find out for myself!
Thank you so much in advance.
All the best
Bex
I've had endless trouble and after 4 solid days of banging my head into a brick wall, I'm wondering whether anyone here might be able to tell me what on earth I am doing wrong.
I have upgraded my hosting package to one that I am assured supports CGI scripting, and everyone at the helpdesk tells me there is no reason why this is not working.
When I try to open up the page a drop down box appears for username and password. So far, so good. I enter the details........ click ok, and I get diverted to a 500 internal server error message screen.
I am guessing that the problem could well be, that the .htaccess file possibly has the incorrect route to the .htpasswd file. Does that sound like the case? The server is obviously picking up the htaccess file but then loses it from the point where it needs to communicate with the password file?
I've been given three different options as to what the file path is by the host, but without truly knowing my stuff, it's very tough for me to tell them to double check things when I think they are giving me the wrong info. A couple of months ago, they upgraded their servers so all the info they were giving out was wrong. It took me 2 days to discover that!
Just for your info..... my .htaccess file reads:
AuthUserFile file/path/to/.htpasswd
AuthName "Secure Client Area"
AuthType Basic
require user MarkWallis
And the .htpasswd is simply
MarkWallis:encryptedpassword
I encrypted it on a recommended website...... any chance it's not encrypting it properly and that is what's causing the trouble?
Also, I have heard that there is a small piece of PHP scripting that I can create a file with, upload onto the server to find out what the true path is - anyone know how that works, because if I'm getting loads of different info, it might be down to me to find out for myself!
Thank you so much in advance.
All the best
Bex