Re: Using django/mod_wsgi with apache httpd ErrorDocument seems to confuse reverse URL mapping

2016-06-27 Thread Patrick Ethier
Quick update, the answer to my question in reading the source code is to set FORCE_SCRIPT_NAME=/wsgi-app/ from the example below. It also seems that the trailing slash in the WSGIScriptAlias is not appropriate, so the directive should be: WSGIScriptAlias /wsgi-app ... It also seems, as per

Using django/mod_wsgi with apache httpd ErrorDocument seems to confuse reverse URL mapping

2016-06-27 Thread Patrick Ethier
Hi, I'm trying to set up mod_wsgi and Django to handle authentication and I'm getting a weird problem. After much troubleshooting I've distilled it down to the configs below: /etc/httpd/conf.d/10-django.conf ServerName site.internal DocumentRoot