2đź‘Ť
âś…
Change the WSGIScriptAlias portion of your apache2 config like this:
WSGIScriptAlias /polls /home/ec2-user/srv/mysite/apache/wsgi.py
Also since you are planning to run multiple Django apps on the server, instead of using: os.environ.setdefault(“DJANGO_SETTINGS_MODULE”, “mysite.settings”), change it to:
os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
From your mysite urls change r’^polls/’ to r’^’. You have to do this because apache2 aliases the /polls to a / request to the django app. (Same explains why you have to type: /polls/admin).
You can read more about it here
WSGIDaemonProcess is the recommended way of deploying multiple Django apps.(you will find lot of examples in stack).
And yes, you can use the above settings with port:80.
For more details you can see this link.
👤Jayaram
Source:stackexchange.com