Closed (fixed)
Project:
S3 File System
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2015 at 10:16 UTC
Updated:
2 Dec 2015 at 19:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jozzhart commentedComment #2
coredumperror commentedYou've tested this and can confirm that it works? I ask because I don't have nginx, and some of the details here don't seem right (or I'm just not interpreting the config lines correctly).
I'm not sure exactly what the
$s3_bucketvariable is supposed to contain. I think this would work if it was something likeYOUR-BUCKET.s3.amazonaws.com/s3fs-public, but I want to make sure that's what you had in mind, since I'm not positive how this config syntax works.I'm also curious why the
resolversettings are necessary, but that's probably just an nginx configuration detail I'm unaware of.Comment #3
jozzhart commentedYup, can be seen working here
http://nswinterschools.com.au
Yup, $s3_bucket = YOUR-BUCKET.s3.amazonaws.com/s3fs-public
I'm not a nginx expert, that's why I included the URL reference where I got the resolver config. Further reading here;
http://serverfault.com/a/240485/173119
http://www.nginx-discovery.com/2011/05/day-51-proxypass-and-resolver.html
Comment #5
coredumperror commentedAlright, I pushed this config (with a few tweaks) up to the dev build's README. Thanks!
Comment #7
muhaha03 commentednothing worth to mention
Comment #8
muhaha03 commentedchange resolver to 8.8.8.8, everything works well finally
Comment #9
muhaha03 commentedThis patch don't actually work.
It still make drupal load local s3fs-css and s3fs-js which not locate at s3.
Only resolver works in this patch.
Comment #10
muhaha03 commentedit should be like this.
Comment #11
muhaha03 commentedthis is wrong
Comment #12
coredumperror commentedI'm not sure what the "return" directive does in nginx, but I'm not sure it'll work unless it's performing some kind of proxying. Do you know if it does that?
Comment #13
muhaha03 commentedI'm not so sure why proxying fail in my case.
But these down below solved my problems.
Comment #14
laughnan@muhaha03 #13 fails for me on nginx (but so does the README information). I get a 502 Bad Gateway error.
Doing the rewrite makes several 404's occur (because it pulls the aggregated files from AWS and they have relative paths for theme/module files such as fonts and images which do not exist on S3).
Anyone have thoughts on this?
Comment #15
coredumperror commentedI wish I could help with this, but I have no experience with nginx.
I can see why #13 is causing the problems you reference in your second paragraph, though. The server config must set up a proxy, not a redirect, due to same-origin policy.
But I haven't got a clue why you'd have a problem with the nginx config from the readme. Maybe you forgot to replace the "YOUR-BUCKET" part of the
$s3_base_pathwith the actual name of your bucket? Or perhaps your bucket name has dots in it? That causes problems with SSL certificates.Either way, this is not actually the appropriate place to hash out the troubleshooting for the issue you're having, as this is a long-closed feature request ticket. Please open a new bug report ticket, where we can continue this conversation.