I reinstalled the containers all with the same version, my new container structure looks like this:
I still have problems with Nginx monitoring

I removed zabbix-agent2 from the target host, I left only zabbix-agent
For the target host in the Zabbix settings, I'm using the Template App Nginx by HTTP: Nginx: Get stub status page, and it's returning the error in the image below I tried some searches to solve but unsuccessfully.

mysite.com.br.conf file It has HTTPS configured:
server {
server_name mysite.com.br www.mysite.com.br;
root /var/www/html/mysite.com.br/placas-front/dist;
location / {
try_files $uri $uri/ /index.html index.nginx-debian.html ;
}
location = /basic_status {
stub_status;
allow 127.0.0.1;
allow 167.99.114.151; # Zabbix Server
deny all;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/www.mysite.com.br/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.mysite.com.br/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
# add_header Access-Control-Allow-Origin *;
}
server {
add_header Access-Control-Allow-Origin *;
if ($host = www.mysite.com.br) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = mysite.com.br) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name mysite.com.br www.mysite.com.br;
listen 80;
return 404; # managed by Certbot
}