Igor Sysoev Wrote: ------------------------------------------------------- > *) Change: now nginx does not cache by default > backend responses, if > they have a "Set-Cookie" header line. What's the recommended method to cache even with the Set-Cookie header present? Thanks, Igor. As awesome as usual.by icqheretic - Nginx Mailing List - English
Thanks, Valery. Patch fixed our problem.by icqheretic - Nginx Mailing List - English
Seeing the same problem here. Same version of upload, nginx is 0.8.33. Open file descriptors are not being closed after upstreaming to fastcgi. Have a link to that patch? I'll be happy to test it out. :)by icqheretic - Nginx Mailing List - English
I was wrong, it DOES work. It helps to edit the right config file sometimes. :) Sorry, Max.by icqheretic - Nginx Mailing List - English
Thanks, Max. If that's the case then calling set in the @error location a lo tof sense. However, $remember, is still coming back blank -- perphaps someting to do with the error_page directive? Any ideas or alternatives for remembering the header information (to be recalled in @error) would be much appreciated. Thanks!by icqheretic - Nginx Mailing List - English
If this is expected behavior how to I go about passing information when an internal redirect is involved between two different locations. For example: Location /u1 { set $remember $upstream_http_content_type; proxy_pass http://127.0.0.1:6060; error_page 404 403 = @error; } Location @error { # recall $remember here, perhaps for logging. }by icqheretic - Nginx Mailing List - English
Consider this configuration fragment: log_format test_log 'TEST: [$origin_ip] [$upstream_http_content_type]'; location / { access_log /tmp/test.log test_log; set $origin_ip $upstream_http_content_type; proxy_pass http://127.0.0.1:6060; } Why am I seeing this in the log file "test.log"? TEST: [] Why is set not being loaded with $upby icqheretic - Nginx Mailing List - English
Hi all. Just fielding a question. Anyone know of a module that will set a random number? For example: seedrandom on; The goal is to have the value stored / accessible throug a variable: $randomid Just wondering if such a module exists and if not, suggestions on a starting point -- perphaps a module that does something similar? Time is pressing here, so I'd rather modify as little asby icqheretic - Nginx Mailing List - English
Nice. Can you provide a copy of wget-test.sh?by icqheretic - Nginx Mailing List - English
Hi Jerome, I may be hitting a similar issue with 0.8.10. Backend is also an apache box. I don't see the MISS / HIT / UPDATING / EXPIRED status strings in my log. What log_format are you using to log your accesses? The default?by icqheretic - Nginx Mailing List - English
Hi, Max! I can see that working. I'll see if the overhead incurred with the extra layer is less than the cost of calling the fastcgi over and over. My guess is yes. Some question come to mind for the extra layer: 1) Is it better / faster to use a socket for the proxy_pass to itself? Can nginx be set up to listen to a unix socket? 2) Would I gain much benefit by using an upstream keepalive mby icqheretic - Nginx Mailing List - English
Sorry about the partial repost. I misclicked the POST button early on and ran into the edit restrictions. Disregard the top. Consider: fastcgi_cache_path storage/cache levels=2:2 keys_zone=cacheresp:50m inactive=25m max_size=2000M; fastcgi_temp_path storage/temp/; fastcgi_cache_valid any 10s; location / { rootby icqheretic - Nginx Mailing List - English
Consider: fastcgi_cache_path storage/cache levels=2:2 keys_zone=cacheresp:50m inactive=25m max_size=2000M; fastcgi_temp_path storage/temp/; fastcgi_cache_valid any 10s; location / { root html; index index.html; fastcgi_pass unix:/tmp/php-fcgi.socket includby icqheretic - Nginx Mailing List - English