Nginx configuration

Hello,

I tried phplist for the fisrt time,
It’s look good, but i’have got some 404 error.
So i whish check if my nginx.conf file looks good.

But i didn’t found a nginx configuration file for phplist.

for exemple, I have a 404 when i clic on
"Start a new message" in sens a campagn

Here my config.

upstream php-handler {
    server 127.0.0.1:9000;
}

server {
        listen       80;
        listen       [::]:80;
        server_name  mailing.domaine.com;
        location / {
                rewrite  ^ https://domain$request_uri? permanent;
        }
    }

server {
    listen                        443 ssl;
    listen                        [::]:443 ssl;
    server_name  mailing.domaine.com;
    root  /var/www/localhost/htdocs/phplist/;
        
        index index.php index.html;

        ssl                  on;
        ssl_certificate      /etc/ssl/private/auto.certificat.pem;
        ssl_certificate_key  /etc/ssl/private/auto.certificat.pem;
        ssl_session_timeout  5m;

 
    # Add headers to serve security related headers
    add_header                    X-Content-Type-Options nosniff;
    add_header                    X-XSS-Protection "1; mode=block";
    add_header                    X-Robots-Tag none;
    add_header                    X-Download-Options noopen;
    add_header                    X-Permitted-Cross-Domain-Policies none;
    add_header                    Strict-Transport-Security 'max-age=31536000; includeSubDomains;';
 
 
            
            charset utf-8;

            location ~* \.(txt|log|inc)$ {
                allow 127.0.0.1;
                deny all;
            }

            location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
              expires max;
              log_not_found off;
           }

            #block phplist config directory
            location /config {
                deny all;
            }

            #per the phplist .htaccess these are the only public allowed php files
            location ~* (index\.php|upload\.php|connector\.php|dl\.php|ut\.php|lt\.php|download\.php)$ {
                   fastcgi_split_path_info ^(.|\.php)(/.+)$;

                   include fastcgi_params; #standar fastcgi config file
                   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   fastcgi_intercept_errors on;
                   fastcgi_pass php-handler;
            }
}

In fact it’s works fine.
I didn’t respect the correct path when i install phplist