Debugging nginx Load Balancer

Anton Yuzhaninov citrin at
Wed Apr 29 18:41:25 MSD 2009

Arun Gupta wrote:
> Thanks for the response!
> nginx was built using --with-debug, here is my complete CLI:
> ./configure --prefix=/usr/local/nginx --sbin-path=/usr/sbin --with-debug 
> --with-http_ssl_module
> nginx and GlassFish gem are all running on the same box for my 
> experiment, i.e. So I updated the existing events entry as:
> events {
>     worker_connections  1024;
>     debug_connection;
> }
> Saw no new messages in access.log and lots of messages in error.log but 
> no information on the port being servicing the request.

This should be in error.log

May be I misunderstood your question, but if you want to know upstream port, you may add to
access_log format variable $upstream_addr

 Anton Yuzhaninov

More information about the nginx mailing list