: This article mainly introduces the difficulty of nginx proxy local JBoss access. if you are interested in the PHP Tutorial, please refer to it. The first day of work after today, all backend developers are absent.
So I tried to configure JBoss. after modifying the Connecter configuration, I found that the access page was very slow.
Access the local JBoss directly and find that the page is opened very quickly.
In the original Jboss configuration, the HTTP protocol is used by default, and keepalive is enabled by default, while Nginx as the reverse proxy only supports the HTTP protocol. When Nginx interacts with the backend Server, it adopts the HTTP1.0 mode. if each connection is closed, the request is complete, and the backend server uses keepalive, therefore, Nginx will not return to the browser until the keepalive connection at the backend is closed, so the page access is very slow.
The root cause of the problem is found, and the modification is very fast. After jboss is restarted, the problem is solved.
// ------------- Some content can be found in the network -------------//
The above introduces the nginx proxy local JBoss access difficulties, including the content, hope to be helpful to friends interested in PHP tutorials.