This server is based on httpd from LwIP.
To enable debugging compile with flags -DLWIP_DEBUG=1 -DHTTPD_DEBUG=LWIP_DBG_ON.
For more info see HTTP Server documentation.