Nginx 1.1.0 location / { uwsgi_cache tna; uwsgi_cache_use_stale error timeout http_500; uwsgi_cache_valid any 10m; uwsgi_cache_key $request_uri; include /etc/nginx/params_uwsgi; uwsgi_intercept_errors off; uwsgi_pass unix:/tmp/uwsgi-tna.sock; } I made a simple test: $ ab -c 10 -n 10000 http://.... on localhost. I am sure that the request is sent to uWSGI only once and isby ddarko - Nginx Mailing List - English
super. exactly what I was looking for. THX ! greetings to all fans of Nginx.by ddarko - Nginx Mailing List - English
nginx version: nginx/0.8.49 I would like to serve static files by default, in the absence - uwsgi_pass. So I wrote this: server { listen 80; server_name www1; location / { root /var/www/1/public; if (!-f $request_filename) { include /etc/nginx/params_uwsgi; uwsgi_pass unix:/var/www/1.sock; } } } Unfortunately, I have: Restarting nginx: : "include&qby ddarko - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |