Actualmente estoy sirviendo el servidor usando nginx con la siguiente configuración.
server { server_name www.skipven.xyz skipven.xyz; location = /favicon.ico { access_log off; log_not_found off; } location /static/ { root /home/ubuntu/ari-bot/aribot; } location / { include proxy_params; proxy_pass http://unix:/home/ubuntu/ari-bot/ari-bot.sock; } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/skipven.xyz/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/skipven.xyz/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 } server { if ($host = www.skipven.xyz) { return 301 https://$host$request_uri; } # managed by Certbot if ($host = skipven.xyz) { return 301 https://$host$request_uri; } # managed by Certbot listen 80; server_name www.skipven.xyz skipven.xyz; return 404; # managed by Certbot } Cuando intento acceder a http://skipven.xyz , se redirige con éxito a https://skipven.xyz . Pero https://skipven.xyz no devuelve nada. Tampoco puedo encontrar ningún registro de acceso de la solicitud https, pero la solicitud http se registra como encanto.
Otras cosas a tener en cuenta:
Ejecutar sudo nginx -t devuelve la siguiente respuesta:
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Ejecutar sudo ufw status devuelve la siguiente respuesta:
Status: active To Action From -- ------ ---- Nginx Full ALLOW Anywhere 22/tcp ALLOW Anywhere Nginx Full (v6) ALLOW Anywhere (v6) 22/tcp (v6) ALLOW Anywhere (v6)Primero asegúrese de que su aplicación web se esté ejecutando, intente curvar a unix socket. Si sigue sin funcionar, ¿qué servicio en la nube usas ahora mismo? Si usa aws o gce, aún necesita configurar su firewall.