Help - Search - Members - Calendar
Full Version: Problem With Folder Security
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Kenny M.
This is the first time I've used an .htaccess/.htpasswd file.
I have mostly used IIS so I just set the permissions in windows.

Anyway I made a folder in the root of my site called secure and one underneath it pass (/secure/pass)

I went online and generated an .htaccess and .htpasswd file.
I uploaded them to the server

Here are the contents:

.htaccess - in secure folder
CODE
AuthUserFile /secure/pass/.htpasswd
    AuthGroupFile /dev/null
    AuthName Secure-Login
    AuthType Basic

    <Limit GET POST>
    require valid-user
    </Limit>


.htpasswd - in pass folder
CODE
test:test


Now I'm prompted for a username/password but it won't accept it.
Does anyone have any ideas?

Thanks,

Kenny
Ed
With the 'AuthUserFile' try an absolute path rather than relative, because of Apache's vhosts setup, chances are the relative path is '/www' rather than your actual directory.
swordz
Also, your password needs to be encypted. Try:

test:$apr1$F1Y2H...$S9fbDhtQ/gCH3D57x2Fqr1

instead of test:test

swordz
Kenny M.
Ok I'll try that path now.
The password was actually encrypted but I thought I'd leave it plain text it for troubleshooting, I'll fix that now too.

Thanks,

Kenny
Kenny M.
Password is now encrypted again.
I still can't get in though.

I've tried:
/secure/pass/.htpasswd
/www/secure/pass/.htpasswd
/.htpasswd

and none of them work
Ed
QUOTE(Kenny M. @ May 22 2009, 06:38 PM) *
Password is now encrypted again.
I still can't get in though.

I've tried:
/secure/pass/.htpasswd
/www/secure/pass/.htpasswd
/.htpasswd

and none of them work


If your domain was 'mydomain.uuuq.com', your path would be:

CODE
/www/uuuq.com/m/y/d/mydomain/htdocs


Make that reflect your own domain.
moon
QUOTE(Bread @ May 22 2009, 05:42 PM) *
If your domain was 'mydomain.uuuq.com', your path would be:

CODE
/www/uuuq.com/m/y/d/mydomain/htdocs


Make that reflect your own domain.


Does, "m/y/d", stand for today's date?
Ed
QUOTE(moon @ Jun 26 2009, 07:15 PM) *
Does, "m/y/d", stand for today's date?


Nope, it's the first 3 letters of the domain name, each one a directory.

If your domain were 'moon.uuuq.com', your path would be:

CODE
/www/uuuq.com/m/o/o/moon/htdocs
Angelus
I read through this, and I finally figured out how to get my .htaccess to work.
Now I can actually have boards, that would be password protected, to avoid abuse.

Thank you, Bread, swordz, Kenny M., and moon.

With this i'll finally be able to get my website setup in a way that it will work.

Cheers,
- Angelus
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-2012 Invision Power Services, Inc.