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: Basic Auth user not logged in common log file |
|
Author |
|
stefan4646
Joined: 18 Jul 2013 Posts: 3
|
Posted: Thu 18 Jul '13 10:52 Post subject: Basic Auth user not logged in common log file |
|
|
Hi,
I use Basic Auth to limit access to a web site. This seems to work ok. I noticed though in the logs that the logged in user is not logged:
80.....188 - - [16/Jul/2013:09:56:29 +0200] "GET ..." 200 1844 "...." " ...
I would expect the second - to be replaced by the logged in user.
Strange though that in other log lines the user sometimes appears ...
The doc says, the user is logged if the document is protected. I do protect the whole directory using directory match. Without log in I fail to retrieve the document in question.
Any ideas ?
Thanks,
Stefan |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 18 Jul '13 14:45 Post subject: |
|
|
Can you post your log config please? |
|
Back to top |
|
stefan4646
Joined: 18 Jul 2013 Posts: 3
|
Posted: Thu 18 Jul '13 14:48 Post subject: |
|
|
Hi,
pretty standard logging:
LogFormat combined
Stefan |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 18 Jul '13 17:10 Post subject: |
|
|
And you are using 2.2 or 2.4? |
|
Back to top |
|
stefan4646
Joined: 18 Jul 2013 Posts: 3
|
Posted: Thu 18 Jul '13 17:31 Post subject: |
|
|
Hi,
Ubuntu 12.04
Apache 2.2
PHP / fcgid
pretty standard albeit big config.
Maybe I should add, that in the Authentication where is also a Satisfy Any with the other option being ip based auth:
AuthType Basic
AuthName ..deleted..
AuthUserFile ..deleted..
Require valid-user
Order allow,deny
Allow from ..deleted..
Satisfy any
Though my concern is only when using Basic auth and providing a valid user from an IP not listed in the allow from clause.
Stefan |
|
Back to top |
|
|
|
|
|
|