Report this

What is the reason for this report?

nginx, 405 Not allowed against PUT method

Posted on October 9, 2013

Hi there! Please help, I’m trying to make my nginx reverse proxy work with my node.js restful api, but always getting 405 Not allowed error on PUT request. I’ve already tried to include “dav_methods PUT DELETE;” line in my config but it seems not working. Server runs with --with-http_dav_module flag in Ubuntu 12.04. here is my config: server { listen 80;

server_name howconscious.ru;

location /site/ {
    dav_methods PUT DELETE;
    proxy_pass http://localhost:1337/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
}

} Thanks in advance!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.