GrahamDumpleton / mod_wsgi-docker

Docker images for Apache/mod_wsgi.
Apache License 2.0
72 stars 36 forks source link

403 error on root when using --mount-point #27

Closed temaput closed 6 years ago

temaput commented 6 years ago

Hello!

I'm just starting to use mod_wsgi, so I'm probably wrong, but... Shouldn't line 706 at server/init.py be

<Directory '%(document_root)s'> instead of <Directory '%(server_root)s'> ?

The issue is when i say --mount-point /api then I get config saying: ` DocumentRoot '/tmp/mod_wsgi-localhost:8000:0/htdocs'

<Directory '/tmp/mod_wsgi-localhost:8000:0'> Require all granted

<Directory '/tmp/mod_wsgi-localhost:8000:0/htdocs/api'> Require all granted `

So there is no access granted to /tmp/mod_wsgi-localhost:8000:0/htdocs and I get 403 at the root

temaput commented 6 years ago

Sorry, that belongs to mod_wsgi rep. I should post it there...