I'm not an expert on this but since nobody else replied I thought I give
it a try. I never used nginx's upload module so I don't know for sure -
but I recall that you have to specify "pasenger_enabled on;" in every
location block that you want passenger to be enabled. AFAIK it gets not
propagated to them.
Try this config:
server {
listen 80;
server_name *.example.com;
root /data/website/public;
rails_env production;
location /photos {
passenger_enabled on; # if you need it here
upload_pass /upload;
upload_store /tmp;
upload_set_form_field $upload_field_name.name "$upload_file_name";
upload_set_form_field $upload_field_name.content_type "$upload_content_type";
upload_set_form_field $upload_field_name.path "$upload_tmp_path";
}
location /upload {
passenger_enabled on;
}
location / {
passenger_enabled on;
track_uploads proxied 30s;
}
location ^~ /progress {
report_uploads proxied;
}
}
I might want to use the upload and upload_progress modules in the future
- if you find a working config I would appreciated it if you could post
it back here.