Ответы пользователя по тегу PHP
  • Nginx + php-fpm file not found почему?

    @ipdesign
    UI/UX ДИЗАЙНЕР
    Попробуйте так:

    server{
            listen  80;
            server_name  education.clouder.xyz;
            root   /var/www/education/;
            index index.php;
    
            location / {
                    try_files $uri $uri/ =404;
                    rewrite ^(.+)$ /index.php?url=$1;
    
            }
    
            location ~ \.php(?:$|/) {
                    fastcgi_split_path_info ^(.+\.php)(/.+)$;
                    fastcgi_pass  127.0.0.1:9000; # listen for a port
                    include  /etc/nginx/fastcgi_params;
                    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    fastcgi_param PATH_INFO $fastcgi_path_info;
                    fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
                    fastcgi_pass php-handler;
                    fastcgi_intercept_errors on;
            }
    }
    Ответ написан