--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/2005cf4e-1c29-49da-ae1d-85ab85d4b6f9n%40apereo.org.
/etc/apache2/mods-enabled/auth_cas.conf
CASLoginURL https://login.example.org/ims-sso/login
CASCookiePath /var/www/website/production/sessions/
CASValidateURL https://login.example.org/ims-sso/serviceValidate
CASValidateSAML Off
CASVersion 2
CASDebug On
CASTimeout 32400
CASIdleTimeout 7200
/etc/apache2/sites-enabled/001-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName example.com
DocumentRoot /var/www/example
LogLevel error
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
SSLEngine on
SSLCertificateFile /etc/ssl/certs/example.org.pem
SSLCertificateKeyFile /etc/ssl/certs/example.key
Alias /static/ /var/www/example/production/static/
<Directory /var/www/example/production/static>
SSLRequireSSL
AuthType None
Require all granted
Order allow,deny
Allow from all
</Directory>
WSGIDaemonProcess example user=www-data group=www-data processes=4 threads=20 display-name=%{GROUP} python-home=/var/www/example/venv python-path=/var/www/example
WSGIScriptReloading On
WSGIScriptAlias / /var/www/example/system/wsgi.py
<Directory /var/www/example>
SSLRequireSSL
WSGIProcessGroup example
WSGIApplicationGroup %{GLOBAL}
<If "%{REMOTE_ADDR} == 'x.x.x.x'">
AuthType None
Require all granted
</If>
# Regular User
<Else>
AuthType CAS
Require valid-user
</Else>
WSGIPassAuthorization On
</Directory>
</VirtualHost>
</IfModule>