0
votes
1answer
29 views

Making Nginx send 4xx/5xx errors from PHP-FPM

I have Nginx setup to reverse proxy all files ending in .php. In some scripts, I check for parameters and send "406 Not Acceptable" as a generic error which needs to be picked up on jQuery/from Ajax. ...
0
votes
1answer
506 views

PUT and DELETE methods in nginx

is there anyway how to enable such http methods like PUT and DELETE for specific veirtual host in nginx ? I need it for my RESTfull server application.
1
vote
1answer
1k views

Nginx proxy by Request Method

Is it possible/how can I configure an Nginx location block to proxy to different backends depending on the request method (ie. GET/POST)? The reason is, I am currently handling the 2 methods at 2 ...