Cannot open static jsp page under https

After the ssl certificate was added to the

website, it was found that all static jsp pages could not be opened. Chrome reported ERR_EMPTY_RESPONSE

.

nginx

began to think that it was an internal call to http.
created a test jsp page with nothing written and the result could not be opened. Create a HTML page, which you can open.

nginx configuration

server { 
    listen 80; 
    server_name xxxx.com www.xxxx.com; 
  
  location / { 
    proxy_pass http://127.0.0.1:18652; 
    proxy_redirect  off;  
    proxy_set_header Host $host; 
    proxy_set_header X-Real-IP $remote_addr; 
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    access_log /var/log/nginx/www.xxxx.com.log; 
  } 
} 
-sharp PC
server {
    listen       443 ssl ;
    server_name www.xxxx.com xxxx.com;



   access_log /var/log/nginx/www.xxxx.com.log;

    ssl_certificate /etc/nginx/conf.d/xxxx_cert/ServerCertificate.cer;
    ssl_certificate_key /etc/nginx/conf.d/xxxx_cert/www.xxxx.com_key.txt;

    ssl_trusted_certificate /etc/nginx/conf.d/xxxx_cert_bak/CACertificate-INTERMEDIATE-1.cer;

    ssl_stapling off;


    add_header Strict-Transport-Security max-age=16588800 always;
    add_header X-XSS-Protection "1; mode=block" always;
    add_header X-Frame-Options SAMEORIGIN always;
    add_header X-Content-Type-Options nosniff always;
    add_header Cache-Control no-cache always;

 include conf.d/safe/safe.conf;

      location / {
            proxy_pass  http://127.0.0.1:18652;
            proxy_redirect  off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           access_log /var/log/nginx/www.xxxx.com.log;
            }
}
Jun.28,2022

solved the final nginx configuration problem

modified nginx conf file

server {
            listen 80;
            server_name xxxx.com www.xxxx.com;
            return 301 https://$host$request_uri;
                 
    }
-sharp PC
server {
    listen       443 ssl ;
    server_name  www.xxxx.com xxxx.com;


     access_log /var/log/nginx/www.xxxx.com.log;

    ssl_certificate /etc/nginx/conf.d/xxxx_cert/ServerCertificate.cer;
    ssl_certificate_key /etc/nginx/conf.d/xxxx_cert/www.xxxx.com_key.txt;

    ssl_trusted_certificate /etc/nginx/conf.d/xxxx_cert_bak/CACertificate-INTERMEDIATE-1.cer;

    add_header Strict-Transport-Security "max-age=44236800; includeSubDomains; preload" always;
    add_header X-XSS-Protection "1; mode=block" always;
    add_header X-Frame-Options SAMEORIGIN always;
    add_header X-Content-Type-Options nosniff always;
    add_header Cache-Control no-cache always;
  

   location / {
            proxy_pass  http://127.0.0.1:18652;
            proxy_redirect  off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           access_log /var/log/nginx/www.xxxx.com.log;
            }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bc93f7-12ea3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bc93f7-12ea3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?