Roundcube Community Forum

 

Im confused from updating from 1.7 to fresh 1.7

Started by Dmitry42, October 20, 2025, 08:37:53 AM

Previous topic - Next topic

Dmitry42

#15
I use this
<?php
echo '-';
echo 
$_SERVER['PATH_INFO'];
echo 
'-';
echo 
$_SERVER['SCRIPT_FILENAME'];
echo 
'';

https://10.1.1.1/tets.php/123

QuotePATH_INFO /123
SCRIPT_FILENAME /var/www/html/webmail/public_html/tets.php

if I use try_files then:
the same URL https://10.1.1.1/tets.php/123 give me
Quote404 Not Found

and https://10.1.1.1/tets.php give me
QuotePATH_INFO empty
SCRIPT_FILENAME /var/www/html/webmail/public_html/tets.php

Dmitry42

#16
now I test config like this:

    location ~ \.php(?:$|/) {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;

        if (!-f $document_root$fastcgi_script_name) {
                return 404;
        }

        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
        include fastcgi_params;
        fastcgi_param HTTPS on;
        fastcgi_param modHeadersAvailable true;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
        fastcgi_intercept_errors on;
        fastcgi_buffers 4 256k;
        fastcgi_busy_buffers_size 256k;
        fastcgi_read_timeout 180s;
    }

replace TRY_FILES with IF

dea75

no, it doesn't work.

Black and white page that require login.. no skin, no graphics.

try_files $uri = 404; commented and nginx restarted....