File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
install/deb/templates/web/nginx/php-fpm Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments