Nginx fails upon proxying PUT requests
- by PartlyCloudy
Hi.
I have an arbitrary web server that supports the full range of HTTP methods, including PUT for uploads. The server runs fine in all tests with different clients.
I now wanted to set this server behind an nginx reverse proxy. However, each PUT request fails. The entity body is not forwarded to the backend web server. The header fields are sent, but not body.
I searched the nginx proxy documentation and find several hints that PUT might not be supported. But I also found people running svn/ web dav stuff behind nginx, so it should work.
Any ideas?
Here is my config:
server {
listen 80;
server_name my.domain.name;
location / {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8000;
}
}
Client == HTTP PUT ==> Nginx == HTTP Proxy ==> Backend Server
The error.log shows no entries concerning this behaviour.
Thanks in advance!