> Hi everybody,
>
> I'm having following setup:
>
> nginx <-unix_socket-> uwsgi -> django
>
> What I noticed is, that some requests of the uwsgi.log file do NOT show
> up in nginx' access_log file.
>
>
> Example:
> in uwsgi.log I can see:
> [pid: 1205|app: 0|req: 537/1453] xx.xx.xx.33 () {40 vars in 1794 bytes}
> [Thu Jan 26 18:42:31 2012] POST /my_url/run?var=123 => generated 129
> bytes in 94 msecs (HTTP/1.0 200) 3 headers in 174 bytes (1 switches on
> core 0)
>
> However I don't see any corresponding request in nginx log.
>
> This is driving me rather crazy while trying to debug some issues.
>
> What could be the reason?


Check if they are not nginx internal requests, generated by a main one.

I have seen you have posted the same question to the nginx list, feel free
to redirect here the official answer (if any)


>
>
>
>
> My uwsgi config file:
> --------------------------
> <uwsgi>
>   <uid>usr</uid>
>   <gid>grp</gid>
>   <socket>/var/sock/nginx.sock</socket>
>   <workers>4</workers>
>   <master />
>   <pidfile>/var/run/uwsgi/uwsgi.pid</pidfile>
>   <daemonize>/var/log/uwsgi/uwsgi.log</daemonize>
>   <pp>/www_basedir</pp>
>   <module>my.module</module>
> </uwsgi>
>
> My nginx.conf
> #--------------
> worker_processes  2;
> events {
>      worker_connections  1024;
> }
> http {
>      include       mime.types;
>      default_type  application/octet-stream;
>
>      sendfile        on;
>      keepalive_timeout  65;
>
>      include sites-enabled/*;
>
>      uwsgi_temp_path  /etc/uwsgi/;
>
> }
>
> # sites_enabled/ssl;
> # ---------------------------------------
> The probably relevant nginx config lines:
> upstream django {
>      ip_hash;
>      server unix:/var/sock/nginx.sock;
> }
>
>
> server {
>      listen  443;
>      server_name  myserver;
>      access_log  /var/log/nginx/access.log;
>      error_log  /var/log/nginx/error.log;
>
>      ssl                  on;
>      # cert info . . . .
>      ssl_verify_client optional;
>      ssl_session_timeout  5m;
>      # cipher info
>
>      location ^~ /static {
>          root   /my/static;
>          index  index.html index.htm;
>      }
>
>      location ^~ /registration {
>          uwsgi_pass django;
>          uwsgi_param UWSGI_SCHEME https;
>          include uwsgi_params;
>      }
>
> }
>
>
>
>
>
>
>
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to