java-ee - Does javaEE all use Nginx to proxy Tomcat, or just use Tomcat port 80 directly?
怪我咯
怪我咯 2017-05-16 17:23:40
0
4
746

javaEE Should we all use Nginx proxy Tomcat, or just use Tomcat port 80

If you use Nginx proxyTomcat, is there any problem when logging in from a third party? I don’t know now whether to use Tomcat directly or Nginx proxyTomcat

There are no PHP programs on the server like java and mysql. Is it necessary to Nginx proxy Tomcat

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(4)
为情所困

javaee can not only use nginx proxy, but also many use apache as a proxy. In theory, any web server can be used as a proxy. Generally, the development and testing environment directly configures tomcat as port 80, and the production environment configures the port separately.
There is no third-party login problem when using nginx to proxy tomcat. They are just front-end static servers.
Whether to use a proxy depends on the business of your website. It is usually necessary because most websites have more static content (or can be staticized). These can return static content directly through the proxy server, which is much more efficient.

Ty80

Using Nginx proxy does not affect third-party login. I currently use cas to do single sign-in for multiple systems. All systems use Nginx front-end proxy, which is also tomcat

左手右手慢动作

NginxGenerally used for load balancing, virtual hosting (when deploying multiple domain names and multiple applications on the same machine), and stripping static resources from web containers
If you just have a web application, there is no need to add an extra layer of nginx

In addition, nginx will not affect third-party login, it just does one layer of forwarding

曾经蜡笔没有小新

Use Nginx to proxy Tomcat

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template