https://www.cnblogs.com/naaoveGIS/p/5478208.html

upstream tomcat_server{

server localhost:8080;

}

server{

listen 80;

server_name enx.wiloon.com;

    location / {
             proxy_pass http://tomcat_server;
    }

}