Advertisement
LordNefilim

net::ERR_CERT_COMMON_NAME_INVALID

Jul 26th, 2020 (edited)
937
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.73 KB | None | 0 0
  1. Error solucionado
  2. Bueno ahora si comento el error
  3. estoy haciendo lo siguiente
  4.  
  5. <li><a href="index.php"><img src="https://web.com/images/Imagen.webp" alt=""></a></li>
  6. y me tira el siguiente error
  7. Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
  8.  
  9. pero cuando accedo a la imagen funciona bien, normal
  10. si acceso al link la imagen esta.
  11.  
  12. y algunas veces si y otras veces no me sale
  13. net::ERR_HTTP2_PROTOCOL_ERROR 200
  14. por ratos sale y por otros no y no tengo idea que pase
  15. esta es mi config en el el nginx
  16. server{
  17.     if ($host = web.com) {
  18.         return 301 https://$host$request_uri;
  19.     } # managed by Certbot
  20.  
  21.  
  22.     if ($host = www.web.com) {
  23.         return 301 https://$host$request_uri;
  24.     } # managed by Certbot
  25.  
  26.  
  27. listen 80;
  28. server_name www.web.com web.com;
  29. return 303 https://www.web.com$request_uri;
  30.  
  31.  
  32. }
  33.  
  34. server{
  35. listen 443 ssl http2;
  36. ssl_protocols TLSv1.2;
  37. ssl on;
  38. server_name web.com www.web.com;
  39.     ssl_certificate /etc/letsencrypt/live/www.web.com/fullchain.pem; # managed by Certbot
  40.     ssl_certificate_key /etc/letsencrypt/live/www.web.com/privkey.pem; # managed by Certbot
  41.     ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
  42.     ssl_prefer_server_ciphers On;
  43.     location / {
  44.         proxy_set_header Accept-Encoding "";
  45.         proxy_pass http://localhost:81/web/;
  46.     }
  47.  
  48.  
  49. }
  50.  
  51. cuando accedo a mi /etc/hosts se observa lo siguiente:
  52.  
  53.  
  54. 127.0.0.1 localhost
  55. 127.0.0.1 localhost localhost.localdomain
  56. localhost web.com
  57. 127.0.0.1 web.com
  58. # The following lines are desirable for IPv6 capable hosts
  59. ::1 ip6-localhost ip6-loopback
  60. fe00::0 ip6-localnet
  61. ff00::0 ip6-mcastprefix
  62. ff02::1 ip6-allnodes
  63. ff02::2 ip6-allrouters
  64. ff02::3 ip6-allhosts
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement