WSGIErrorOverride only does anything if you are using daemon mode. Your configuration suggests you are using embedded mode.
One should always use daemon mode unless you have a good reason not to. Is there a reason you are using embedded mode? Even if using daemon mode, WSGIErrorOverride has no effect on error code returned by auth handlers. Apache dictates what they are. Graham > On 17 Sep 2015, at 4:40 pm, Mitch <[email protected]> wrote: > > perhaps this will help as there might something i am doing wrong in here... > > <VirtualHost *:80> > RewriteEngine on > RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R=permanent] > SSLCACertificateFile /etc/httpd/conf/rootCA.crt > SSLCACertificatePath /etc/httpd/conf/ > </VirtualHost> > > WSGIRestrictStdout Off > WSGISocketPrefix run/wsgi > > WSGIScriptAlias /auth > /usr/local/lib/python2.7/site-packages/sis/auth/sissite/wsgi.py > WSGIScriptAlias /medv3 /usr/local/lib/python2.7/site-packages/medv3/wsgi.py > WSGIScriptAlias / /usr/local/lib/python2.7/site-packages/medv3/wsgi.py > > LDAPVerifyServerCert off > > ScriptAlias /apierrors > /usr/local/lib/python2.7/site-packages/medv3/threats/api/api_https_error.py > > <Location "/apierrors"> > # enable Apache to process the following HTTP error codes > WSGIErrorOverride On > # > # 400 Bad Request > ErrorDocument 400 /apierrors > # 401 Unauthorized > ErrorDocument 401 /apierrors > # 403 Forbidden > ErrorDocument 403 /apierrors > # 404 Not Found > ErrorDocument 404 /apierrors > # 406 Not Found > ErrorDocument 406 /apierrors > # 500 Internal Server Error > ErrorDocument 500 /apierrors > > Order deny,allow > Allow from all > </Location> > > <Location "/medv3/api/v1"> > AuthName "MEDv3 API LDAP" > AuthType Basic > AuthBasicProvider ldap > AuthzLDAPAuthoritative off > AuthLDAPUrl ldaps://<SERVER>:636/dc=zzz,dc=aaa,dc=bbb,dc=tld > Require ldap-group cn=medv3,ou=group,dc=zzz,dc=aaa,dc=bbb,dc=tld > Require valid-user > WSGIPassApacheRequest On > > # enable Apache to process the following HTTP error codes > WSGIErrorOverride On > # > # 400 Bad Request > ErrorDocument 400 /apierrors > # 401 Unauthorized > ErrorDocument 401 /apierrors > # 403 Forbidden > ErrorDocument 403 /apierrors > # 404 Not Found > ErrorDocument 404 /apierrors > # 406 Not Found > ErrorDocument 406 /apierrors > # 500 Internal Server Error > ErrorDocument 500 /apierrors > > Order deny,allow > Allow from ALL > </Location> > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
