I use nginx as a proxy, and the back-end server is tomcat. I wrote two server blocks to proxy to two projects in tomcat. The first server block listens to port 80 and adds default. Everything is normal. The second server block listens to port 80 and adds default. A server acts as a proxy for another project. The get request is normal, but the ajax post request reports 404. As a note, I am using Alibaba Cloud's Ubuntu image, and nginx is version 1.6. It's sent from a mobile phone now, and there is no screenshot of the code.
nginx does not restrict http methods by default, right?
Have you checked the java program? Is it possible that there are restrictions in the program?
Visual inspection is not caused by nginx
I have the same question, get is valid, post becomes get
I’ve also encountered this, what’s the reason?