take a look at this example, sdb should not be that different https://github.com/lovelysystems/nginx-examples/tree/master/s3 cheers, bernd On Apr 28, 2011, at 12:28 AM, AndrewH wrote: > I am looking for some advice on the recommended way of achieving the > following. > > I need to sign Amazon Simple Database (SDB) queries with our Amazon Web > Services credentials before forwarby dobe - Nginx Mailing List - English
hi all i am currently implementing a queue in shared memory for a module, now i want to calculate how much memory/pages an allocation via ngx_slab_alloc ocopies in order to approximate the number of items i can put into the queue. the memory per item differs, because they contain strings does anybody know how to do this? thanks in advance, bernd _____________________________________________by dobe - Nginx Mailing List - English
hi use something like below to always have a GET request to your authentication upstream. then let the authentication upstream return an x-accell-redirect header. now if the original request was a post, it will still be a post after the call to the auth upstream. so you could do whatever you want with the authenticated request e.g. send it to another upstream cheers, bernd # interby dobe - Nginx Mailing List - English
hi thanks for your answer, i considered this already, but actually only nginx knows of the event, then the new config hast to be fetched and generated. i could touch a file with my module to trigger inotify and use incron, but this does not work in our development environments which are mostly macos x. i want to do it with as little as possible outside dependencies and deployment overhead,by dobe - Nginx Mailing List - English
hi all does anybody know if it is possible to execute code in the master process of a running nginx by writing an nginx module. what i want to do is to somehow notify the master process from a worker proces (e.g. by changing some state in shared memory) and then execute code with the master process' user. actually what i want to do is to force a config reload, so i have to signal the masterby dobe - Nginx Mailing List - English
hi the map module is case insensitive, it uses ngx_hash_strlow to produce the key internally so this is not a problem for the hypens problem i would generate a map file with two keys for each article id, one with and one without hyphens like: title-1 1 title1 1 cheers, berndby dobe - Nginx Mailing List - English
hi all i need to gather all upstream response headers of a given special type (e.g: "x_something") in order to process them later. what would be the best solution to achieve this in nginx (e.g via a custom module). the problem here is that i have more than one upstream per single main request. e.g via ssi or the ngx_echo module. the "upstream_http_*" variables of the upby dobe - Nginx Mailing List - English
hi all is there a way to get a unique index of the current worker process via a variable? (e.g. 0,1,2,3 for 4 workers) i want to use it as a memcache prefix, therefore i cannot use $pid because this changes upon restart. any clues, thxby dobe - Nginx Mailing List - English
you can use sendfile to achieve this, send to backend B first, set the x-accell-redirect header, which then should point to the location of backend A for example we use this pattern for authentication, additionally you can omit the request body and rewrite the method used to access backend b location ^~ "/_backendB" { proxy_connect_timeout 1; proxy_passby dobe - Nginx Mailing List - English
wow, thanks for the information, it works! i must have missed something in the documentation thx, berndby dobe - Nginx Mailing List - English
hi all does anybody know if it is possible to set millisecond values for: proxy_connect_timeout proxy_send_timeout proxy_read_timeout my usecase is to have fallbacks for requests that take longer than about 200 milliseconds, especially for use with SSI thx, berndby dobe - Nginx Mailing List - English
thanks for the fast answer, this did the trickby dobe - Nginx Mailing List - English
hi all we found out, that at least on macosx nginx 0.7.64 the location directives are not case sensitive, in particular the exact match locations. is there any way to get the same behaviour as on linux where those directives are case sensitive (e.g. through a compile time option?) thanks in advance, berndby dobe - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |