I have a Django project loaded up with Lightsail. I'm looking to get it to run with Apache. I've followed the tutorial located here, but for some reason, it is throwing the following site error and apache error when trying to connect to the server by just it's IP.
Getting the following error when hitting my site:
500 Internal Server Error
When looking at my Apache Logs
No WSGI daemon process called 'smp_api' has been configured: /home/ubuntu/test/smp_api/wsgi.py,
WSGI.py File
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "smp_api.settings")
application = get_wsgi_application()
Apache Conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /static /home/ubuntu/test/static
<Directory /home/ubuntu/test/static>
Require all granted
</Directory>
<Directory /home/ubuntu/test/smp_api>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
<Directory /test>
Require all granted
</Directory>
WSGIDaemonProcess python-path=/home/ubuntu/test
WSGIProcessGroup smp_api
WSGIScriptAlias / /home/ubuntu/test/smp_api/wsgi.py
</VirtualHost>