Last change
on this file since 603 was
603,
checked in by andersk, 15 years ago
|
Modularize the redirect-to-certs kludge so that users just need to say
'ErrorDocument 401 /__scripts/needcerts'.
|
File size:
616 bytes
|
Rev | Line | |
---|
[603] | 1 | <Directory /afs/athena.mit.edu/contrib/scripts/www> |
---|
| 2 | <Files *> |
---|
| 3 | SetHandler none |
---|
| 4 | </Files> |
---|
| 5 | </Directory> |
---|
| 6 | |
---|
| 7 | Alias /__scripts/unauthorized /afs/athena.mit.edu/contrib/scripts/www/unauthorized.html |
---|
| 8 | |
---|
| 9 | <Location /__scripts/needcerts> |
---|
| 10 | RewriteEngine On |
---|
| 11 | RewriteCond %{HTTP_HOST} !:444$ |
---|
| 12 | RewriteCond %{SERVER_NAME} !=scripts-cert.mit.edu |
---|
| 13 | RewriteCond %{SERVER_NAME} !=scripts-cert |
---|
| 14 | RewriteCond %{THE_REQUEST} ^[^\ ]*\ (.*)\ .* |
---|
| 15 | RewriteRule ^ https://%{SERVER_NAME}:444%1 [L,R] |
---|
| 16 | |
---|
| 17 | RewriteRule /__scripts/needcerts(.+) $1 [L] |
---|
| 18 | RewriteRule /__scripts/needcerts /__scripts/unauthorized [L] |
---|
| 19 | </Location> |
---|
Note: See
TracBrowser
for help on using the repository browser.