Dnia 22 listopada 2021 12:48:42 CET, Sandeep Gupta <gupta.sand...@gmail.com> 
napisał/a:
>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
>

httpd is chrooted to /var/www, so your gunicorn server should listen in 
/var/www/run/gunicorn.sock instead of /run/gunicorn.sock, if you specify 
/run/gunicorn.sock in httpd.conf
--
Łukasz Moskała

Reply via email to