danomaniac
Programmer
After reading through this forum, I can bet most of you are tired of this subject, but alas, it has claimed another hapless victim... me! I have exhausted all options I can think of before advertising on this forum the fact that I can't figure this out. So I humbly ask for help.
My website is being hosted on a Unix server running Apache 1.3.11 server software. I only have ftp access, I can't telnet. From what I've read on the web, it's a simple matter for someone like me to secure a directory using .htaccess but it isn't working out that way.
I’ve managed to create the .htaccess file and placed it in the directory I wish to secure
AuthUserFile /html/cgi-bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Secure Vendor Login"
AuthType Basic
<Limit GET POST PUT>
require valid user
</Limit>
Is the /html directory assumed? Meaning can I just put /cgi-bin/.htpasswd ? The only reason I ask is the /html/ portion of the path does not show up in the browser address window.
Next, in the /html/cgi-bin directory, I place the .htpasswd file
testuser:sxBA1Uq2a1HFk
That’s it. Now, when I try to access a page in the ‘protected’ directory, I get prompted for a username and password, but no matter what I do, it never accepts it.
Since I can’t telnet to the server, I used one of those “Create a password” sites that creates an encrypted password for you. Personally, I don’t see how this could work, but they claim to. Is this the source of my grief?
I’ve also tried putting just a plain word in the .htpasswd file for a password, like testuser:testpassword and tried to log in. Nada.
Am I missing something? What about this httpd.conf file I’ver read so much about? Is that a server-side thing? Or Can I create/modify it from my side?
I've talked with the tech guys that are hosting my site, and either they don't know the answers, or I don't know the questions (I'm pretty sure it's the latter), but I'm no better off after I hang up the phone than before.
Many questions, I know. I’m probably asking to be told in 3 words or less how to do something some people make careers out of, and for that, I apologize.
Thanks very much for any response at all.
My website is being hosted on a Unix server running Apache 1.3.11 server software. I only have ftp access, I can't telnet. From what I've read on the web, it's a simple matter for someone like me to secure a directory using .htaccess but it isn't working out that way.
I’ve managed to create the .htaccess file and placed it in the directory I wish to secure
AuthUserFile /html/cgi-bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Secure Vendor Login"
AuthType Basic
<Limit GET POST PUT>
require valid user
</Limit>
Is the /html directory assumed? Meaning can I just put /cgi-bin/.htpasswd ? The only reason I ask is the /html/ portion of the path does not show up in the browser address window.
Next, in the /html/cgi-bin directory, I place the .htpasswd file
testuser:sxBA1Uq2a1HFk
That’s it. Now, when I try to access a page in the ‘protected’ directory, I get prompted for a username and password, but no matter what I do, it never accepts it.
Since I can’t telnet to the server, I used one of those “Create a password” sites that creates an encrypted password for you. Personally, I don’t see how this could work, but they claim to. Is this the source of my grief?
I’ve also tried putting just a plain word in the .htpasswd file for a password, like testuser:testpassword and tried to log in. Nada.
Am I missing something? What about this httpd.conf file I’ver read so much about? Is that a server-side thing? Or Can I create/modify it from my side?
I've talked with the tech guys that are hosting my site, and either they don't know the answers, or I don't know the questions (I'm pretty sure it's the latter), but I'm no better off after I hang up the phone than before.
Many questions, I know. I’m probably asking to be told in 3 words or less how to do something some people make careers out of, and for that, I apologize.
Thanks very much for any response at all.