mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Experimental tightening up of Moodle on NGINX
This commit is contained in:
parent
7381031ceb
commit
c9ae808a6f
3 changed files with 29 additions and 22 deletions
|
@ -1,21 +1,27 @@
|
|||
location ~ ^/moodle/dataroot/ {
|
||||
internal;
|
||||
alias {{ moodle_data }};
|
||||
}
|
||||
#location ~ ^/moodle/dataroot/ {
|
||||
# internal;
|
||||
# alias {{ moodle_data }};
|
||||
#}
|
||||
|
||||
location ~ ^/moodle(.*)\.php(.*)$ {
|
||||
alias {{ moodle_base }}$1.php$2;
|
||||
include fastcgi.conf;
|
||||
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_read_timeout 300;
|
||||
fastcgi_pass php;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||||
fastcgi_param PHP_VALUE "max_execution_time=300\n upload_max_filesize=500M\n post_max_size=500M\n max_input_vars=5000";
|
||||
fastcgi_pass php;
|
||||
|
||||
#include fastcgi.conf;
|
||||
include fastcgi_params;
|
||||
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
||||
|
||||
#fastcgi_read_timeout 300;
|
||||
|
||||
# Uncomment to override /etc/php/<VERSION>/fpm/php.ini (AND .../cli/php.ini)
|
||||
#fastcgi_param PHP_VALUE "max_execution_time=300\n upload_max_filesize=500M\n post_max_size=500M\n max_input_vars=5000";
|
||||
}
|
||||
|
||||
|
||||
location ~ ^/moodle/ {
|
||||
location ~ ^/moodle {
|
||||
root {{ iiab_base }};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue