Follow

To use moodle with nginx, you will need to add this to your nginx.conf (or add certain lines):

location ~ [^/]\.php(/|$) {
root <path>;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass <your socket>;
fastcgi_index index.php;
include fastcgi.conf;
include fastcgi_params;
fastcgi_param PATH_INFO
$fastcgi_path_info;
fastcgi_param
SCRIPT_FILENAME
$document_root$fastcgi_script_name;
}

Sign in to participate in the conversation
Linux.Pizza

A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome! Just give a reason why we should approve your application into this instance,our team will review it.