Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Private folder not private? |
|
Author |
|
sos
Joined: 20 Sep 2008 Posts: 6 Location: Bucharest, Romania.
|
Posted: Sat 20 Sep '08 17:18 Post subject: Private folder not private? |
|
|
Hello, i have a problem with a private folder and i can't get to the bottom of it, maybe you guys can help me, i would appreciate it.
I have my admin folder at "c:/wwwroot/admin" that i want to make private, it has an "index.php" in it and some folders, the root is http://localhost/admin. It works fine, but when i press ok without entering any input to the user or password field at the "user" and "password" browser prompt for "restricted area" i can see my index.php, when i enter a wrong user or/and a wrong password or press cancel it works fine. Only on blank input to the fields, it lets me view the index.php, or directory indexing (i tried removeing the index.php)
This is the code from my httpd.conf
Code: |
<Directory c:/wwwroot/admin>
AuthType Basic
AuthName "restricted area"
AuthBasicProvider dbd
Require valid-user
AuthDBDUserPWQuery \
"SELECT AES_DECRYPT(password, 'mytoken') from list WHERE user = %s"
</Directory>
|
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 21 Sep '08 14:08 Post subject: |
|
|
What is in your error.log about that? |
|
Back to top |
|
sos
Joined: 20 Sep 2008 Posts: 6 Location: Bucharest, Romania.
|
Posted: Sun 21 Sep '08 23:36 Post subject: |
|
|
Nothing, i get no error, only when i type an unexistend user, or a wrong password, but when i just press ok without entering any user or password the log says nothing, and i see the index.php |
|
Back to top |
|
|
|
|
|
|