Advertisement
ccarpo

httpd.conf

Jul 28th, 2020 (edited)
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.39 KB | None | 0 0
  1. ...
  2. ############## CUSTOM CONFIG #################
  3. LogLevel debug
  4.  
  5. LoadModule auth_cas_module modules/mod_auth_cas.so
  6.  
  7. CASCookiePath /var/cache/httpd/mod_auth_cas/
  8. CASLoginURL https://alfresco.<hostname>.com/auth/realms/master/protocol/cas/login
  9. CASValidateURL https://alfresco.<hostname>.com/auth/realms/master/protocol/cas/serviceValidate
  10. CASProxyValidateURL https://alfresco.<hostname>.com/auth/realms/master/protocol/cas/proxyValidate
  11. CASDebug On
  12.  
  13. <Location /share>
  14. #### CAS Auth ######
  15.     AuthType CAS
  16.     AuthName 'CAS'
  17.     require valid-user
  18.     CASAuthNHeader X-Alfresco-Remote-User
  19.     CASScope /share
  20. #### CAS Auth END
  21.  
  22. #### Basic Auth #####
  23. #    RequestHeader set X-Alfresco-Remote-User admin
  24. #    AllowOverride AuthConfig
  25. #    AuthType Basic
  26. #    AuthName "Authentication Required from Apache"
  27. #    AuthUserFile "/etc/htpasswd/.htpasswd"
  28. #### Basic Auth END #####
  29.  
  30.   Require valid-user
  31.   Order allow,deny
  32.   Allow from all
  33. </Location>
  34.  
  35. ProxyPass               /auth            http://ec2-3-124-5-4.eu-central-1.compute.amazonaws.com:8080/auth
  36. ProxyPassReverse        /auth            http://ec2-3-124-5-4.eu-central-1.compute.amazonaws.com:8080/auth
  37.  
  38. ProxyPass               /share           http://ec2-18-157-161-63.eu-central-1.compute.amazonaws.com:8080/share
  39. ProxyPassReverse        /share           http://ec2-18-157-161-63.eu-central-1.compute.amazonaws.com:8080/share
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement