Get the App
SLTechnology News&Howtos  ›  Development  › 

What if the integrated environment such as pagoda and jspstudy cannot be accessed properly?

Shulou Source: shulou.com Published: 2022-06-02 01:28:25 10月04日 Update

This article mainly introduces "what to do if the integrated environment such as pagoda and jspstudy cannot be accessed normally". In daily operation, I believe that many people have doubts about how to use the integrated environment such as pagoda and jspstudy to access normally. The editor has consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubt that "how to use pagoda, jspstudy and other integrated environment can not be accessed normally?" Next, please follow the editor to study!

Pagoda and jspstudy integrated environments are usually composed of Nginx (or Apache) and Tomcat. Nginx (or Apache) handles requests for static resources (such as pictures, js, css, html, etc.) and sends them to Tomcat for processing if it is a dynamic resource request.

There is a question of how the Nginx (or Apache) of the integrated environment determines which resources are dynamic. The strategy of most integration environments is to judge based on suffixes, such as identifying requests at the end of .jsp as dynamic requests and sending them to tomcat for processing.

But jspxcms uses RESTful-style url addresses, and url addresses do not have a suffix, such as http://www.example.com/info/12. At this time, the integration environment does not detect the suffix name, which is considered to be a static resource request and is not sent to tomcat for processing, so it is inaccessible.

The easiest way is to use Tomcat directly, where both dynamic and static requests are handled by Tomcat.

If you want the combination of nginx+tomcat, how to deal with it? The correct logic is that when a url request cannot find a corresponding static page, nginx sends the request to tomcat for processing.

Please check out CentOS7 Server Building-NGINX

Of course, the easiest way is not to use an integrated environment such as a pagoda, but to use Tomcat directly, where both dynamic and static requests are handled by Tomcat, and there is no such hassle.

At this point, the study on "what to do if the integrated environment such as pagoda and jspstudy cannot be accessed properly" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Environment processing pagoda dynamic static what to do resources learning suffixes addresses ways more problems help practical and then pictures most of them that is the situation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi NVidia Xiaomi MySQL Microsoft