public
Last active

Nginx not implemented error using 1.5.3

  • Download Gist
Log
1 2 3
2013/08/02 17:01:11 [warn] 26#0: *7 a client request body is buffered to a temporary file /var/lib/nginx/client_body_temp/0000000001, client: 172.16.42.1, server: , request: "POST /tenants/cwstest/stunts/51fbe5d696bb27002d000001/uploads/51fbe5d796bb27002d000002/encrypt HTTP/1.1", host: "localhost:49172"
 
2013/08/02 17:01:11 [crit] 26#0: *7 writev() "/var/lib/nginx/client_body_temp/0000000001" failed (38: Function not implemented), client: 172.16.42.1, server: , request: "POST /tenants/cwstest/stunts/51fbe5d696bb27002d000001/uploads/51fbe5d796bb27002d000002/encrypt HTTP/1.1", host: "localhost:49172"
compile.sh
Shell
1 2 3 4 5
./configure --prefix=/var/lib/nginx --sbin-path=/usr/local/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --without-http-cache
 
make
 
make install
nginx.conf
Nginx
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
worker_processes 1;
daemon off;
#master_process off;
 
events {
worker_connections 1024;
}
 
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 200M;
 
server {
listen 80 default_server;
 
location / {
proxy_pass http://unix:/var/run/app/unicorn.sock:/;
proxy_set_header X-Forwarded-Host "$http_x_forwarded_host, $http_host";
proxy_set_header X-Forwarded-For "$proxy_add_x_forwarded_for";
proxy_set_header X-Forwarded-Prefix "$http_x_forwarded_prefix";
}
}
}
post.sh
Shell
1
curl -i -F name=test -F filedata=@localfile.jpg http://localhost:49172/tenants/cwstest/stunts/51fbe5d696bb27002d000001/uploads/51fbe5d796bb27002d000002/encrypt

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.