server {
    server_name stagingadmin.spottorg.ru;
    listen 443 ssl;

    ssl_certificate /etc/nginx/ssl/dot2024.crt;
    ssl_certificate_key /etc/nginx/ssl/dot2024.key;


    index index.php index.html index.htm;
    root /application/public;


    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
        fastcgi_pass localhost:9000;
        try_files $uri =404;
        fastcgi_index index.php;
    }
}
