Mod_Security with Moodle

Re: Mod_Security with Moodle

by Iñaki Arenaza -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If your hosting company is not willing to sort this out, you can help Moodle deal with it smile

First, you need to find out the real web server you company is using (Apache x.y, nginx z.w, IIS n.p, etc.). Once you know it, you can add something like the following to your config.php file (the example assumes your company is using Apache, adjust to match your company's server type):

global $_SERVER;
$_SERVER['SERVER_SOFTWARE'] = 'Apache';

Make sure you add those two lines before the line that reads:

require_once(dirname(__FILE__) . '/lib/setup.php');

Saludos.

Iñaki.

Average of ratings: Useful (3)