...
Code Block |
---|
<VirtualHost _default_:443> ErrorLog ${APACHE_LOG_DIR}/ssl_error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/ssl_access.log vhost_combined ServerName powerfolder.organization.net ServerAdmin support@organization.net DocumentRoot "/var/www/default" # Set strict transport security: https://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security Header always set Strict-Transport-Security "max-age=31536000;" SSLEngine on SSLCertificateFile /etc/ssl/certs/powerfolder.organization.net.pem SSLCertificateKeyFile /etc/ssl/private/powerfolder.organization.net.key RewriteEngine On <Location /login/shibboleth> AuthType shibboleth ShibRequestSetting requireSession 1 <RequireAll> Require valid-user Require shib-attr entitlement ~ http://idm.org/entitlement/organization-PowerFolder http://powerfolder.organization.net/entitlement/DFN-Cloud </RequireAll> </Location> <Location /Shibboleth.sso> satisfy Any Header set Access-Control-Allow-Origin "*" </Location> <Proxy balancer://pfcluster> BalancerMember http://pf01.organization.net:8080 route=nodeID01 BalancerMember http://pf02.organization.net:8080 route=nodeID02 BalancerMember http://pf03.organization.net:8080 route=nodeID03 ProxySet stickysession=rpcid|JSESSIONID|jsessionid scolonpathdelim=On lbmethod=bybusyness </Proxy> ProxyPass /rpc balancer://pfcluster/rpc nocanon ProxyPass /rpc ! ProxyPass /eds ! ProxyPass /Shibboleth.sso ! ProxyPass / balancer://pfcluster/ nocanon # Shibboleth-Attribute mapping to HTTP Headers for delivery to PF Server # Source: https://wiki.powerfolder.com/display/EDUDE/Shibboleth RequestHeader set SAMLShib-Session-ID %{HTTP_ShibSAMLShib-Session-ID}e env=HTTP_ShibSAMLShib-Session-ID RequestHeader RequestHeader set SAMLShib-Session-ID "" env=!HTTP_ShibSAMLShib-Session-ID RequestHeader set SAMLpersistent-id %{HTTP_persistentSAMLpersistent-id}e env=HTTP_persistentSAMLpersistent-id RequestHeader set SAMLpersistent-id "" env=!HTTP_persistentSAMLpersistent-id RequestHeader set SAMLuniqueID %{HTTP_uniqueIDSAMLuniqueID}e env=HTTP_uniqueID SAMLuniqueID RequestHeader set SAMLuniqueID "" env=!HTTP_uniqueID SAMLuniqueID RequestHeader set SAMLpairwise-id %{HTTP_pairwiseSAMLpairwise-id}e env=HTTP_pairwiseSAMLpairwise-id RequestHeader set SAMLpairwise-id "" env=!HTTP_upairwiseSAMLupairwise-id RequestHeader set SAMLeduPersonPrincipalName %{HTTP_eduPersonPrincipalNameSAMLeduPersonPrincipalName}e env=HTTP_eduPersonPrincipalName SAMLeduPersonPrincipalName RequestHeader set SAMLeduPersonPrincipalName "" env=!HTTP_eduPersonPrincipalName SAMLeduPersonPrincipalName RequestHeader set SAMLeppn %{HTTP_eppnSAMLeppn}e env=HTTP_eppn SAMLeppn RequestHeader set SAMLeppn "" env=!HTTP_eppn SAMLeppn RequestHeader set SAMLEPPN %{HTTP_EPPNSAMLEPPN}e env=HTTP_EPPN SAMLEPPN RequestHeader set SAMLEPPN "" env=!HTTP_EPPN SAMLEPPN RequestHeader set SAMLmail %{HTTP_mailSAMLmail}e env=HTTP_mail SAMLmail RequestHeader set SAMLmail "" env=!HTTP_mail SAMLmail RequestHeader set SAMLemail %{HTTP_emailSAMLemail}e env=HTTP_email SAMLemail RequestHeader set SAMLemail "" env=!HTTP_email SAMLemail RequestHeader set SAMLgivenName %{HTTP_givenNameSAMLgivenName}e env=HTTP_givenName SAMLgivenName RequestHeader set SAMLgivenName "" env=!HTTP_givenName SAMLgivenName RequestHeader set SAMLsn %{HTTP_snSAMLsn}e env=HTTP_sn SAMLsn RequestHeader set SAMLsn "" env=!HTTP_sn SAMLsn RequestHeader set SAMLsurname %{HTTP_surnameSAMLsurname}e env=HTTP_surname SAMLsurname RequestHeader set SAMLsurname "" env=!HTTP_surname SAMLsurname RequestHeader set SAMLaffiliation %{HTTP_affiliationSAMLaffiliation}e env=HTTP_affiliation SAMLaffiliation RequestHeader set SAMLaffiliation "" env=!HTTP_affiliation SAMLaffiliation RequestHeader set SAMLeduPersonScopedAffiliation %{HTTP_eduPersonScopedAffiliationSAMLeduPersonScopedAffiliation}e env=HTTP_eduPersonScopedAffiliation SAMLeduPersonScopedAffiliation RequestHeader set SAMLeduPersonScopedAffiliation "" env=!HTTP_eduPersonScopedAffiliation SAMLeduPersonScopedAffiliation RequestHeader set SAMLentitlement %{HTTP_entitlementSAMLentitlement}e env=HTTP_entitlement SAMLentitlement RequestHeader set SAMLentitlement "" env=!HTTP_entitlement SAMLentitlement RequestHeader set SAMLeduPersonEntitlement %{HTTP_eduPersonEntitlementSAMLeduPersonEntitlement}e env=HTTP_eduPersonEntitlementSAMLeduPersonEntitlement RequestHeader set SAMLeduPersonEntitlement "" env=!HTTP_eduPersonEntitlementSAMLeduPersonEntitlement # Organization attribute. Must match entry 'shibboleth.organizations.attribute' in PowerFolder.config. Default: o RequestHeader set SAMLo %{HTTP_oSAMLo}e env=HTTP_oSAMLo RequestHeader set SAMLo "" env=!HTTP_oSAMLo </VirtualHost> |