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
 #
 # these HTTP error codes should not include those used in
 # flood.medv3.threats.api.api_https
 #
 # 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=tsic,dc=cso,dc=att,dc=com
 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
 #
 # these HTTP error codes should not include those used in
 # flood.medv3.threats.api.api_https
 #
 # 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.

Reply via email to