How to configure nginx to work with Jetty6 webserver?

后端 未结 2 1279
你的背包
你的背包 2021-02-01 08:00

It seems that nginx is used with php, ruby and python.

Anyone has an example of how to setup nginx to work with jetty/tomcat in backend?

Thanks.

2条回答
  •  逝去的感伤
    2021-02-01 08:29

    nginx can forward via HTTP protocol, so just point it to the correct port and you're set:

    server {
        location /anything {
            proxy_pass http://localhost:8080/whatever;
        }
    }
    

提交回复
热议问题