0
votes
2answers
67 views

Nginx returning 444 for PUT and DELETE

I'm trying to build a REST API through Nginx and everything works fine except when I the requests are PUT or DELETE. In these cases, Nginx returns 444 (no response). I did some research and all I ...
0
votes
2answers
105 views

Is it possible to block external requests to an API?

I have nginx serving a python REST API at api.example.com. When a user enters example.com, a couple of AJAX requests are fired from the user to api.example.com. Is it possible to block requests to the ...
0
votes
1answer
139 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. ...
1
vote
1answer
884 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
2k 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 ...