NGINX Proxy + Apache not allowing POST requests

Started by clintonskakun, September 21, 2017, 05:57:30 PM

Previous topic - Next topic

clintonskakun

Not sure if this is a Nginx issue, an Apache issue or a Php conf problem.

I migrated a few website installs from my old Gentoo VM and mostly everything works great. Only problem is POST requests are showing as 404. The same request as a GET request works fine. These sites use Apache and PHP.

I haven't changed anything in the confs. I'm using the default Nginx + Apache generated setup installed via the panel and re-created them a few times.

The Nginx access logs are showing only POST requests 404s but not any GET requests from just visiting the websites. No errors being showen in the error logs.

studio4host

try switching your cwp under WebServers in the left menu to apache only mode and then test again if that works then switch to nginx and test again.

I would also recommend checking the logs of apache as it can be mod_security in some cases showing 404
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

locvfx

I have no problem with  nginx POST/GET requests
mod_security  just gives you more headache! maybe try to disable it.
suggestion: You can do a simple test on 'contact form' for POST and GET request.