Created
February 16, 2013 00:32
-
-
Save guilhem/4964818 to your computer and use it in GitHub Desktop.
Nginx for radosgw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name _; | |
client_max_body_size 100m; | |
location / { | |
fastcgi_pass_header Authorization; | |
fastcgi_pass_request_headers on; | |
if ($request_method = PUT ) { | |
rewrite ^ /PUT$request_uri; | |
} | |
include fastcgi_params; | |
fastcgi_keep_conn on; | |
fastcgi_pass 127.0.0.1:2374; #If you are using my commit a14bae6049 | |
# fastcgi_pass unix:/var/run/ceph/client.radosgw.ceph-radosgw-2 ; #Or this one for a classic unix socket | |
} | |
location /PUT/ { | |
internal; | |
fastcgi_pass_header Authorization; | |
fastcgi_pass_request_headers on; | |
include fastcgi_params; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_pass 127.0.0.1:2374; | |
# fastcgi_pass unix:/var/run/ceph/client.radosgw.ceph-radosgw-2 ; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment