Hi to all :) in the last two days I have googled more to resolving my problem, but unfortunately, now I am already locked I have a Django project, with PostgreSQL (I use psycopg2-binary==2.7.6.1). I have configurated a virtualenv with the command:
virtualenv -p python3 myvenv activated the virtualenv, installed the requirements, makemigrations and migrate, and all fine. If I run the server with runserver command, it works great. I tried to run the project with uwsgi, and this is the ini file that I have used to configure: [uwsgi] http = 0.0.0.0:9090 chdir = /mnt/md0/app/PROJ/ uid = www-data gid = www-data wsgi-file = /mnt/md0/app/PROJ/PROJ/wsgi.py pythonpath = /usr/lib/python3.6/site-packages/ virtualenv = /mnt/md0/app/PROJ/myvenv static-map = /static=/mnt/md0/app/PROJ/static/ env = DJANGO_SETTINGS_MODULE=PROJ.settings processes = 4 threads = 2 but if I try to configure this project under Apache I receive always 500 error, this is the error in error.log: [Tue Feb 19 12:00:05.576706 2019] [wsgi:error] [pid 22992] [client 95.237.49.28:53902] Truncated or oversized response headers received from daemon process 'PROJ': /mnt/md0/app/PROJ/PROJ/wsgi.py, referer: https://mysite.it/accounts/login/ this is the rules that I have used to configure the virtualhost: <VirtualHost *:80> ServerName mysite.it ErrorLog /mnt/md0/app/PROJ/error.log Redirect permanent / https://mysite.it/ SSLEngine off </VirtualHost> <VirtualHost *:443> ServerName mysite.it DocumentRoot /mnt/md0/app/PROJ WSGIPassAuthorization On WSGIScriptAlias / /mnt/md0/app/PROJ/PROJ/wsgi.py ErrorLog /mnt/md0/app/PROJ/error.log Alias /static /mnt/md0/app/PROJ/static <Directory /mnt/md0/app/PROJ/static> Require all granted </Directory> WSGIApplicationGroup %{GLOBAL} WSGIDaemonProcess PROJsite processes=1 threads=15 display-name=%{GROUP} python-home=/mnt/md0/app/PROJ/myvenv python-path=/usr/local/lib/python3.6/dist-packages:/mnt/md0/app/PROJ WSGIProcessGroup PROJsite <Directory /mnt/md0/app/PROJ> AllowOverride all Require all granted Options FollowSymlinks </Directory> Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/mysite.it/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/mysite.it/privkey.pem </VirtualHost> I have included this rules `WSGIApplicationGroup %{GLOBAL}` also in apache2.config (I'm under ubuntu server 18.04) Someone can give me an hand to resolve this great problem? Thanks a lot <3 -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
