Created
April 27, 2015 12:56
-
-
Save clarsonneur/0b299003788f40668c99 to your computer and use it in GitHub Desktop.
apache st2auth.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:9100> | |
ServerName myhost.mydomain.com:9100 | |
WSGIScriptAlias / /usr/lib/python2.7/dist-packages/st2auth/wsgi.py | |
WSGIDaemonProcess st2auth user=stanley group=stanley processes=2 threads=25 python-path=/usr/lib/python2.7/dist-packages/st2auth:/usr/lib/python2.7/dist-packages/st2common:/usr/lib/python2.7/dist-packages | |
#/path/to/virtualenv/local/lib/python2.7/site-packages | |
WSGIProcessGroup st2auth | |
SSLEngine on | |
SSLCertificateFile /etc/apache2/ssl/mycert.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/mycert.key | |
SSLCACertificateFile /etc/apache2/ssl/ca.cert.pem | |
AddExternalAuth pwauth /usr/sbin/pwauth | |
SetExternalAuthMethod pwauth pipe | |
<Directory /usr/lib/python2.7/dist-packages/st2auth> | |
<Files wsgi.py> | |
Order deny,allow | |
Allow from all | |
</Files> | |
AuthType Basic | |
AuthName "Restricted" | |
AuthBasicProvider external | |
AuthExternal pwauth | |
require unix-group st2ops | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment