In jewel I use the below config rgw is work well with the nginx. But with 
luminous  the nginx look like can not work with the rgw.



10.11.3.57, request: "GET / HTTP/1.1", upstream: 
"fastcgi://unix:/var/run/ceph/ceph-client.rgw.ceph-11.asok:", host: 
"10.11.3.57:7480"
2018/08/31 16:38:25 [error] 143730#143730: *110 recv() failed (104: Connection 
reset by peer) while reading response header from upstream, client: 10.11.3.57, 
server: 10.11.3.57, request: "GET / HTTP/1.1", upstream: 
"fastcgi://unix:/var/run/ceph/ceph-client.rgw.ceph-11.asok:", host: 
"10.11.3.57:7480"


[client.rgw.ceph-11]
public addr = 10.11.3.57
rgw_thread_pool_size = 512
rgw_frontends = fastcgi
rgw_socket_path = /var/run/ceph/ceph-client.rgw.ceph-11.asok
rgw_print_continue = false
rgw_content_length_compat = true


root@ceph-11:/etc/ceph# ll  /var/run/ceph/ceph-client.rgw.ceph-11.asok
srwxrwxrwx 1 ceph ceph 0 Aug 31 16:28 
/var/run/ceph/ceph-client.rgw.ceph-11.asok=


http {

        ##
        # Basic Settings
        ##
        fastcgi_connect_timeout 300s;
        fastcgi_send_timeout 300s;
        fastcgi_read_timeout 300s;
        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        # server_tokens off;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        ##
        # SSL Settings
        ##

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
        ssl_prefer_server_ciphers on;

        ##
        # Logging Settings
        ##

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        ##
        # Gzip Settings
        ##

        gzip on;
        gzip_disable "msie6";

        # gzip_vary on;
        # gzip_proxied any;
        # gzip_comp_level 6;
        # gzip_buffers 16 8k;
        # gzip_http_version 1.1;
        # gzip_types text/plain text/css application/json 
application/javascript text/xml application/xml application/xml+rss 
text/javascript;

        ##
        # Virtual Host Configs
        ##

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
        server {
        listen   7480 default;
        server_name 10.11.3.57;
        client_max_body_size 10240m;
        #client_max_body_size 20m;
        location / {
            fastcgi_pass_header Authorization;
            fastcgi_pass_request_headers on;
            fastcgi_param QUERY_STRING  $query_string;
            fastcgi_param REQUEST_METHOD $request_method;
            fastcgi_param CONTENT_LENGTH $content_length;
            fastcgi_param CONTENT_LENGTH $content_length;

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

            include fastcgi_params;
            fastcgi_pass unix:/var/run/ceph/ceph-client.rgw.ceph-11.asok;
        }

        location /PUT/ {
            internal;
            fastcgi_pass_header Authorization;
            fastcgi_pass_request_headers on;

            include fastcgi_params;
            fastcgi_param QUERY_STRING  $query_string;
            fastcgi_param REQUEST_METHOD $request_method;
            fastcgi_param CONTENT_LENGTH $content_length;
            fastcgi_param  CONTENT_TYPE $content_type;
            fastcgi_pass unix:/var/run/ceph/ceph-client.rgw.ceph-11.asok;
        }
}



Thank you!
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to