source: server/fedora/config/etc/httpd/conf.d/scripts-special.conf @ 623

Last change on this file since 623 was 623, checked in by quentin, 16 years ago
Move the heartbeat script to /__scripts/heartbeat so we can serve it from vhosts
File size: 733 bytes
Line 
1Alias /__scripts/heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
2Alias /__scripts /afs/athena.mit.edu/contrib/scripts/www
3
4<Directory /afs/athena.mit.edu/contrib/scripts/www>
5    <Files *>
6        SetHandler none
7    </Files>
8</Directory>
9
10<Location /__scripts/needcerts>
11    RewriteEngine On
12    RewriteCond %{HTTP_HOST} !:444$
13    RewriteCond %{SERVER_NAME} !=scripts-cert.mit.edu
14    RewriteCond %{SERVER_NAME} !=scripts-cert
15    RewriteCond %{THE_REQUEST} ^[^\ ]*\ (.*)\ .*
16    RewriteRule ^ https://%{SERVER_NAME}:444%1 [L,R]
17
18    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/needcerts(.+) $1 [L]
19    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/needcerts /__scripts/unauthorized.html [L]
20</Location>
Note: See TracBrowser for help on using the repository browser.