Skip to content

Instantly share code, notes, and snippets.

@acdha
Last active January 15, 2018 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save acdha/7994024 to your computer and use it in GitHub Desktop.
Save acdha/7994024 to your computer and use it in GitHub Desktop.
Trivial example of enabling mod_auth_cas on Apache on recent-ish Ubuntu
sudo apt-get install libapache2-mod-auth-cas
sudo a2enmod auth_cas
# Install site config updates above
sudo service apache2 restart
<VirtualHost …>
CASCookiePath /var/cache/apache2/mod_auth_cas/
CASLoginURL https://CAS_AUTH_URL/auth
CASValidateURL https://CAS_AUTH_URL/serviceValidate
# If you use a wild-card SSL certificate, perhaps on your testing infrastructure:
CASAllowWildcardCert on
<Location /admin/>
AuthType CAS
require valid-user
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment