nginx for rgw fcgi frontend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Yehuda,

I was trying to do some tests on nginx over rgw and ran into some issue on the PUT side:

$ swift upload con ceph_fuse.cc
Object PUT failed: http://localhost/swift/v1/con/ceph_fuse.cc 411 Length Required   MissingContentLength

However the GET/HEAD/POST requests are all working. From the history mail in ceph-user nginx should be working well. There's no such issue if switch to civetweb frontend. Is there anything changed in fcgi frontend? I'm testing on the master branch.

here's the request log and the CONTENT_LENGTH is there actually.

http://paste2.org/YDJFYIcp



rgw part of ceph.conf
....
        rgw frontends = fastcgi
        rgw dns name = localhost
        rgw socket path = /var/run/ceph/ceph.radosgw.gateway.fastcgi.sock
        rgw print continue = false
...


Nginx site.conf:

server {
    listen 80;

    client_max_body_size 10g;

    access_log /dev/stdout;
    error_log /dev/stderr;

    location / {
        fastcgi_pass_header Authorization;
        fastcgi_pass_request_headers on;

        if ($request_method = PUT) {
            rewrite ^ /PUT$request_uri;
        }

        include fastcgi_params;

        fastcgi_pass unix:/var/run/ceph/ceph.radosgw.gateway.fastcgi.sock;
    }

    location /PUT/ {
        internal;

        fastcgi_pass_header Authorization;
        fastcgi_pass_request_headers on;

        include fastcgi_params;
        fastcgi_param CONTENT_LENGTH $content_length;
        fastcgi_param HTTP_CONTENT_LENGTH $content_length;

        fastcgi_pass unix:/var/run/ceph/ceph.radosgw.gateway.fastcgi.sock;
    }
}



Sincerely, Yuan

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux