nginx reverse proxy java dataBase

Specifies that the tomcat deployment is a self-defined docBase path

1. Find the server.xml file in the tomcat directory.
Insert picture description here
2. Add the relevant path above (configure according to actual needs)

<Context path="访问路径" docBase="实际文件路径"  reloadable="true" />

Insert picture description here
3. An
example of nginx reverse proxy : The map service is on the .3 server and the application server is on .4, so the picture exists on the computer of .4. You need nginx to do a reverse proxy, and you can read the picture when you access .3 ;
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_45605697/article/details/109304942