On Mon, Nov 22, 2021 at 05:18:42PM +0530, Sandeep Gupta wrote:
> Below is my simple httpd.conf entry:
> 
> server "www.example.com" {
>         listen on * port 80
>         root "/htdocs/www.example.com/"
>         location "/app" {fastcgi socket "/run/gunicorn.sock"}
> }
> 
> In the background gunicorn server is running. When I access
> www.example.com/app, I get 500 Internal Server Error. There is nothing
> in the httpd error log (/var/www/logs/error.log). The gunicorn server
> doesn't report any incoming request.
> Hence, I thing request breaks down in the  httpd part before
> forwarding to the request to gunicorn.
> How do I go about debugging httpd requests.  I have put "-v -d" in the
> httpd_flags in /etc/rc.conf.local but doesnt produce any additional
> log messages.
> 
> 
> Thanks
> -S

I keep on having the same problem.  The way to debug the CGI is with slowcgi.
I usually ktrace -p (pid of slowcgi) -i and watch the ktrace.out and then
turn off ktrac'ing with ktrace -C.  Since the 500 Internal Server Error is
not really informative.

Best Regards,
-peter

Reply via email to