apache logs

AlbertTheII

Новичок
apache logs

дано:
есть многопользовательская система. нет системы логов для каждого пользователя.

задача:
использовать стандартный access.log т.е. видеть в логе записи вида:
80.130.21.93 - USER [01/Sep/2006:11:15:36 +0300] "GET /index.php HTTP/1.0" 200 38529
...
как добиться подобного результата без вызова
Код:
header('WWW-Authenticate: Basic realm="System"'); 
header('HTTP/1.0 401 Unauthorized'); 
...
???

как возможное решение - в каждом скрипте сделать инклюд, который проверит наличие хедера Аuthentication и если нет такового через сокет передаст такой же запрос добавив его.

можно проще ?
 

AlbertTheII

Новичок
Автор оригинала: Wicked
http://httpd.apache.org/docs/1.3/logs.html#accesslog
%u

оно? а то я не совсем понимаю твой вопрос :)
не понимаешь мой вопрос

как добиться подобного результата без вызова ...
frank (%u)
This is the userid of the person requesting the document as determined by HTTP authentication. The same value is typically provided to CGI scripts in the REMOTE_USER environment variable. If the status code for the request (see below) is 401, then this value should not be trusted because the user is not yet authenticated. If the document is not password protected, this entry will be "-" just like the previous one.
 
Сверху