title: Setting up Tomcat in nginx proxy
body: <p>I'm setting up my web server and I need to run tomcat on <code>http://ip/tomcat/</code> instead of <code>http://ip:8080/</code>. How I can do this on nginx?
  I've tried to find an answer in the internet, but all of them is useless for me.</p>
  <p>My nginx configuration:</p>
  <pre><code>upstream tomcat {
      server ip:8080;
  }
  
  server {
  
          listen 80 default_server;
          listen [::]:80 default_server;
  
          server_name _;
  
          location /tomcat/ {
                  proxy_pass http://tomcat;
          }
  
  }
  </code></pre>
  <p>Server answer:
  <a href="https://i.stack.imgur.com/yZR65.png" rel="nofollow noreferrer">server answer image</a></p>