You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
746 B
25 lines
746 B
LoadModule auth_basic_module modules/mod_auth_basic.so
|
|
LoadModule authn_file_module modules/mod_authn_file.so
|
|
LoadModule authz_user_module modules/mod_authz_user.so
|
|
|
|
# Turn the authenticated remote-user into an Apache environment variable for the console security controller
|
|
RewriteEngine On
|
|
RewriteCond %{LA-U:REMOTE_USER} (.+)
|
|
RewriteRule . - [E=RU:%1]
|
|
RequestHeader set X-Remote-User "%{RU}e" env=RU
|
|
|
|
<Location /console>
|
|
AuthName "OpenShift Developer Console"
|
|
AuthType Basic
|
|
AuthUserFile /etc/openshift/htpasswd
|
|
require valid-user
|
|
|
|
# The node->broker auth is handled in the Ruby code
|
|
BrowserMatch Openshift passthrough
|
|
Allow from env=passthrough
|
|
|
|
Order Deny,Allow
|
|
Deny from all
|
|
Satisfy any
|
|
</Location>
|
|
|
|
|