I\'m trying to deploy a Django application to Elastic Beanstalk. When I visit the page it never loads. The logs say:
Script timed out before returning header
I have tried above steps which can solve issue temporally. then I have done bellow steps:
make "packages.config" file under ".ebextensions " folder and put following lines
WSGIApplicationGroup:
command: grep -rnw 'WSGIApplicationGroup' config.py || sed -i.bak '/LogFormat/ a WSGIApplicationGroup %%{GLOBAL}' config.py
cwd: /opt/elasticbeanstalk/hooks
thanks for helps to made this who given suggestion for this type of error
I finally fixed. just read about apache mpm load module concept
I was changed the default load mode from apache preforker(my case) module which is depends on os.
find below location
location : /etc/httpd/conf.module.d/00-mpm*.
Enable worker module which depends our cases
LoadModule mpm_worker_module lib64/httpd/modules/mod_mpm_worker.so
once again thanks for who helped me.