I am trying to get a django app to run on amazon linux 2. After installing 
apache server by yum and compiling mod_wsgi from source. I configured 
mod_wsgi according to the quick installation guide 
<https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html>on
 
the documentation. I've also followed this guide from django 
<https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/modwsgi/>. 
There is also a " Apache/2.4.46 () mod_wsgi/4.7.1 Python/3.9  configured -- 
resuming normal operations" entry  in error_log. However, every time I 
visit the ip address it gives me a "Server Error(500)". There are no other 
significant entries in error_log to indicate the issue.

I will post my apache server configuration bellow:
I have only added from line 33 to 55

https://pastebin.com/N7pvEvzx

the / switchsnap .net/ is my project root (where manage.py is) and wsgi.py 
is stored in switchsnap .net/switchsnap

I wish someone can help me pin down the issue.
Thanks in advance.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/666fe9af-16ff-4815-8e83-72996bf6190bn%40googlegroups.com.

Reply via email to