Thanks for helping!
On your advice I started a standalone project to get wsgi working. I appended the following to the end of my apache.conf
file:
DocumentRoot /mnt/wsgi-jbb/content
<Directory /mnt/wsgi-jbb/content>
Require all granted
</Directory>
WSGIScriptAlias /myapp /mnt/wsgi-jbb/app.py
<Directory /mnt/wsgi-jbb>
Require all granted
</Directory>
When I try to visit any of the following links:
http://localhost:8000/myapp/hello
http://localhost:8000/hello
http://localhost:8000/myapp/content/hello
http://localhost:8000/content/hello
I get the following:
Forbidden
You don't have permission to access this resource.
Apache/2.4.38 (Debian) Server at localhost Port 8000
Which means I’m reaching Apache, at least!
When I look up that error I find what might be solution but it describes doing something not mentioned in the WSGI tutorial, which I don’t understand:
sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
# Who is username? I'm running the Docker container as root.
# What is www-data? Does it apply if I'm serving locally?