mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Merge branch 'MDL-57887-nginx-username-logging' of https://github.com/brendanheywood/moodle
This commit is contained in:
commit
8b9196d7d2
2 changed files with 54 additions and 28 deletions
|
@ -385,7 +385,15 @@ $CFG->admin = 'admin';
|
|||
// LogFormat "%h %l %{MOODLEUSER}n %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" moodleformat
|
||||
// And in the part specific to your Moodle install / virtualhost:
|
||||
// CustomLog "/your/path/to/log" moodleformat
|
||||
// CAUTION: Use of this option will expose usernames in the Apache log,
|
||||
//
|
||||
// Alternatively for other webservers such as nginx, you can instead have the username sent via a http header
|
||||
// 'X-MOODLEUSER' which can be saved in the logfile and then stripped out before being sent to the browser:
|
||||
// $CFG->headerloguser = 0; // Turn this feature off. Default value.
|
||||
// $CFG->headerloguser = 1; // Log user id.
|
||||
// $CFG->headerloguser = 2; // Log full name in cleaned format. ie, Darth Vader will be displayed as darth_vader.
|
||||
// $CFG->headerloguser = 3; // Log username.
|
||||
//
|
||||
// CAUTION: Use of this option will expose usernames in the Apache / nginx log,
|
||||
// If you are going to publish your log, or the output of your web stats analyzer
|
||||
// this will weaken the security of your website.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue