Tag Archives: reverse proxy

Reverse Proxy Nginx -> Tomcat

reverse proxyWe need two servers:

  • NGINX
    • Serve static files
    • Serve maintenance page
    • Control access via GeoIP tables
    • Offer HTTPS protocol to clients (443)
    • Maintain reverse proxy to Tomcat on HTTP
  • TOMCAT
    • Will hold deployed application
    • Communicates on port 8080

For a reverse proxy we need to configure nginx:

nginx.conf

 

site.conf

 

Tomcat configuration more simple:

server.xml