Nginx fails upon proxying PUT requests
Posted
by PartlyCloudy
on Server Fault
See other posts from Server Fault
or by PartlyCloudy
Published on 2010-05-16T10:15:28Z
Indexed on
2010/05/16
10:20 UTC
Read the original article
Hit count: 262
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!
© Server Fault or respective owner