Skip to content

Commit 783c733

Browse files
author
Arturo Blanco
authored
Update moodle.tpl (hestiacp#1420)
* Update moodle.tpl
1 parent 9d5a1f4 commit 783c733

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install/deb/templates/web/nginx/php-fpm/moodle.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ server {
5757

5858
location ~ [^/]\.php(/|$) {
5959
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
60-
if (!-f $document_root$fastcgi_script_name) {
61-
return 404;
62-
}
60+
fastcgi_split_path_info ^(.+\.php)($|/.*);
61+
try_files $fastcgi_script_name =404;
6362
6463
fastcgi_pass %backend_lsnr%;
6564
fastcgi_index index.php;
6665
fastcgi_param SCRIPT_FILENAME $request_filename;
66+
fastcgi_param PHP_VALUE open_basedir="/home/%user%/web/%domain%/private/moodledata:/home/%user%/web/%domain%/public_html:/home/%user%/web/%domain%/public_shtml:/home/%user%/tmp:/var/www/html:/etc/phpmyadmin:/var/lib/phpmyadmin:/etc/phppgadmin:/etc/roundcube:/var/lib/roundcube:/tmp:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt";
6767
fastcgi_intercept_errors on;
6868
include /etc/nginx/fastcgi_params;
6969
}

0 commit comments

Comments
 (0)