如何配置Nginx与Jetty6 Web服务器一起使用? [英] How to configure nginx to work with Jetty6 webserver?

查看:108
本文介绍了如何配置Nginx与Jetty6 Web服务器一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

nginx似乎与php,ruby和python一起使用.

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

任何人都有一个示例,该示例说明如何设置nginx以在后端与码头/tomcat一起使用?

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

谢谢.

推荐答案

nginx可以通过HTTP协议进行转发,因此只需将其指向正确的端口即可进行设置:

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;
    }
}

这篇关于如何配置Nginx与Jetty6 Web服务器一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆