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 @@ -61,13 +61,13 @@ server {
6161
6262 location ~ [^/]\.php(/|$) {
6363 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
64- if (!-f $document_root$fastcgi_script_name) {
65- return 404;
66- }
64+ fastcgi_split_path_info ^(.+\.php)($|/.*);
65+ try_files $fastcgi_script_name =404;
6766
6867 fastcgi_pass %backend_lsnr%;
6968 fastcgi_index index.php;
7069 fastcgi_param SCRIPT_FILENAME $request_filename;
70+ 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";
7171 fastcgi_intercept_errors on;
7272 include /etc/nginx/fastcgi_params;
7373 }
You can’t perform that action at this time.
0 commit comments