Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

palla451's avatar

Setting Laravel Nginx Debian10 ssl

H guys, today have a problem with setting of laravel v9, nginx and Debian 10. Except the welcome page, I don't see any routes.

The url is https://mysite-api-dev.name.it

Nginx config sites:

server {
    listen       80;
    server_name  default;
    root   /var/www/backend/public;
    index  index.php index.html index.htm;

   location / {
    if ($request_uri ~ ^/(.*)\.html$) {
        return 302 /;
        }
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /var/www/;
    }
        location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass   unix:/var/run/php/php8.1-fpm.sock;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}

I have php v8.1.3.

Has anyone ever seen such a problem?

0 likes
0 replies

Please or to participate in this conversation.