To add to the above, nginx seems to have issues with proxy_bind and mixing IPv4 and IPv6, e.g. if the resolver gives an IPv4 address, but we're listening on IPv6. In other words, if we bind on an IPv6 address, but the resolver decides to return an IPv4, the proxy will fail.by Yumi - Ideas and Feature Requests
+1 to this: makes a lot of sense to have.by Yumi - Ideas and Feature Requests
Yay, included in 1.7.6! http://nginx.org/en/CHANGESby Yumi - Ideas and Feature Requests
> But what with the worker_connections? I have read that this is the number of simultaneous connections a single process can handle. How high should this value be? I am expecting lets say 20 connections per hour. I will host there only my personal home page and my school notebook (based on Wordpress). Will increasing this value result in high usage of RAM by idling nginx waiting for new connectby Yumi - Nginx Mailing List - English
Currently limit_req_zone and limit_conn_zone require exactly one variable to be set. It would be more flexible if this could be a string, similar to how the proxy_cache_key directive works, for example. Example uses: # restrict an end user from constantly refreshing the same page limit_req_zone $binary_remote_addr$uri zone=ipUri:2m rate=1r/s; # limit total number of connections to a resby Yumi - Ideas and Feature Requests
+1 to the idea. Maybe something like: limit_req one burst=10 nodelay=5; # first 5 'bursts' don't have a delay, the next 5 do I haven't tried, but I suspect this doesn't do the desired thing: limit_req one burst=10; limit_req one burst=5 nodelay; (I'm guessing that the first directive above essentially overrides the second for the first 5, then the second directive overrides the first aby Yumi - Nginx Mailing List - English
+1 to the idea. Useful for protecting a slow backend (eg PHP) in the case when you get a short burst of traffic.by Yumi - Ideas and Feature Requests
Do you want *specific* folders to be served from the /home directory instead of the root? If so, you'll need to come up with a list of which folders you want served from /home, or a list of folders you want served from / Or do you wish to try serving from /home, then falling back to /? If so, you can try the try_files directive: http://wiki.nginx.org/HttpCoreModule#try_filesby Yumi - How to...
So I went through the source code and it appears that anything other than a letter, number or underscore is explicitly disallowed in variable names. However, you can use ${varname} type syntax. Hence, it's possible to abuse these brackets to allow the use of more characters. Here's my code patch: --- src/http/ngx_http_script.c +++ src/http/ngx_http_script.c @@ -394,11 +394,11 @@by Yumi - How to...
The alias directive is what you want: http://wiki.nginx.org/HttpCoreModule#aliasby Yumi - How to...
I'm not quite sure why you need to do a proxy_redirect for websockets. My understanding is that proxy_redirect modifies the proxied Location/Refresh headers, which don't really relate to a websockets connection (after it's established). (well that's my understanding of websockets) Perhaps this page may help you if you haven't seen it already? http://nginx.org/en/docs/http/websocket.htmlby Yumi - How to...
Taking a total stab in the dark: Have you tried proxy_cache_min_uses 0; ? Also I assume your back end is sending the appropriate caching headers? From the doco: The following response headers flag a response as uncacheable unless they are ignored: Set-Cookie Cache-Control containing "no-cache", "no-store", "private", or a "max-age" withby Yumi - How to...
If I'm understanding you correctly, would the nginx access log be suffice? The only issue I see is that if you're sending the parameter in the POST body, it won't be logged by nginx. If it's possible to sent it in a GET parameter, it would be logged. (I'm presuming the "massive" in your topic title refers to the amount of traffic rather than the amount of data that needs to be loggeby Yumi - How to...
I've never used the MP4 streaming module, so I can't really answer but: From memory, the stts MP4 atom maps frames to their display time. Basically for videos with a constant frame rate (most videos) there should only be one entry in the stts. If your MP4 has a variable frame rate, then there'll be multiple entries in the stts. The error seems to suggest that you're trying to seek outsideby Yumi - How to...
I presume you're refering to all _files_ should be served from the /home directory if the user visits / ? For example: http://example.com/file.html -> /var/www/home/file.html http://example.com/ -> /var/www/home/ http://example.com/home/file.html -> /var/www/home/file.html http://example.com/css/style.css -> /var/www/css/style.css http://example.com/css/ -> /var/wwwby Yumi - How to...
I wasn't able to find much documentation on the syntax of variables in nginx. In particular, how are special characters handled in the $arg_NAME and $cookie_NAME variables? The following doesn't seem to work for me: $cookie_group Does there need to be some sort of escaping to handle these? Thanks in advance!by Yumi - How to...