Skip to content

Instantly share code, notes, and snippets.

@tsuchm
Last active August 29, 2015 14:11
Show Gist options
  • Save tsuchm/60e393af58f37ac755e1 to your computer and use it in GitHub Desktop.
Save tsuchm/60e393af58f37ac755e1 to your computer and use it in GitHub Desktop.
# RewriteMap する前に RewriteEngine on が必要.
# これをやっておかないと,map lookup FAILED というエラーではまる.
# RewriteMap を呼び出す時点で,「RewriteEngine on」してないから使えないよ,というエラーを出してくれれば楽なのに‥‥
RewriteEngine on
RewriteMap mapper prg:/path/to/mapper
<Location /shibboleth-required-area>
AuthType shibboleth
ShibRequestSetting requireSession 1
ShibUserHeaders on
Require valid-user
RewriteEngine on
RewriteRule . - [E=envvar:${mapper:%{HTTP:eppn}},L]
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment