I am trying to host my Flask app on a Linux server. My app connects to an 
API and waits for a response. It is giving me this error.

[Sun Apr 30 05:57:30.091150 2023] [wsgi:error] [pid 524703:tid 
140623501117184] [client *someIp*:62319] Timeout when reading response 
headers from daemon process 'webApp': /var/www/webApp/webapp.wsgi, referer: 
http://*serverIP*/

My conf file looks like this:


   1. <VirtualHost *:80>
   2.     ServerName *serverIp*
   3.     ServerAdmin em...@mywebsite.com
   4. 
   5.     WSGIDaemonProcess webApp processes=4 threads=5 
   maximum-requests=1000 request-timeout=600
   6.     WSGIProcessGroup webApp
   7. 
   8.     WSGIScriptAlias / /var/www/webApp/webapp.wsgi 
   process-group=webApp application-group=%{GLOBAL}
   9. 
   10.     <Directory /var/www/webApp/webApp/>
   11.         Order allow,deny
   12.         Allow from all
   13.     </Directory>
   14. 
   15.     Alias /static /var/www/webApp/webApp/static
   16.     <Directory /var/www/webApp/webApp/static/>
   17.         Order allow,deny
   18.         Allow from all
   19.     </Directory>
   20. 
   21.     ErrorLog ${APACHE_LOG_DIR}/error.log
   22.     LogLevel warn
   23.     CustomLog ${APACHE_LOG_DIR}/access.log combined
   24. </VirtualHost>

The error on user-side is 
*Gateway Timeout*

*The gateway did not receive a timely response from the upstream server or 
application.*



-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to modwsgi+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/94c43590-df3c-4a93-8cd9-d2afb965a631n%40googlegroups.com.

Reply via email to