One tomcat has two projects, one project has been configured with https, and the other project has not been configured correctly according to the previous nginx.conf configuration.

problem description

how does nginx configure https correctly for the second project under tomcat

the platform version of the problem and what methods you have tried

Baidu query says to listen to port 443,
but why another project listens to port 80 and can be configured successfully?

related codes

/ / Please paste the code text below (do not replace the code with pictures)
server

{
    -sharp
    listen 80;
    -sharplisten 443 ssl;
    server_name b.xxxxxx.com;
    -sharpssl on;
    ssl_certificate cert bundle.crt;
    ssl_certificate_key bundle.key;
    location / {
        -sharp....
        proxy_pass http://localhost:8080/dms/;
    }
    client_max_body_size 50m;
}

server
{
    -sharp
    listen 80;
    server_name a.xxxxxx.com;
    location / {
        proxy_pass http://localhost:8080;
    }
    client_max_body_size 80m;
}

what result do you expect? What is the error message actually seen?

May.14,2021

has been prompted that port 443 is occupied. Use netstat-tunlp | grep 443 command to confirm whether the port is occupied


failure reason: the https of one of the projects is configured under tomcat, resulting in port 443 being occupied. Kill the tomcat process

.
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-1b3bdb4-e818.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-1b3bdb4-e818.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?