Has anyone encountered nginx as a proxy, the get request is valid, and the post request is 404
伊谢尔伦
伊谢尔伦 2017-05-16 17:13:08
0
4
521

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.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(4)
曾经蜡笔没有小新

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?

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