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

Last change on this file since 2499 was 2257, checked in by adehnert, 12 years ago
Serve Django 1.4 admin media Django 1.4 relocated the admin media in the filesystem, and started refering to it as static media instead of just "media". Consequently, we change both the left and right hand sides of the Alias. See also #300.
File size: 1.5 KB
Line 
1Alias /__scripts/heartbeat /afs/athena.mit.edu/contrib/scripts/web_scripts/heartbeat
2Alias /__scripts/django/static/admin /usr/lib/python2.7/site-packages/django/contrib/admin/static/admin
3Alias /__scripts /afs/athena.mit.edu/contrib/scripts/www
4
5<Directory /afs/athena.mit.edu/contrib/scripts/www>
6    <Files *>
7        SetHandler none
8    </Files>
9</Directory>
10
11<Directory /usr/lib/python2.7/site-packages/django/contrib/admin/static/admin>
12    <Files *>
13        SetHandler none
14    </Files>
15</Directory>
16
17<Location /__scripts/needcerts>
18    RewriteEngine On
19
20    RewriteCond %{HTTP_HOST} !:444$
21    RewriteCond %{SERVER_NAME} ^(.*\.)?scripts$
22    RewriteCond %{THE_REQUEST} ^[^\ ]*\ (.*)\ .*
23    RewriteRule ^ https://%{SERVER_NAME}.mit.edu:444%1 [L,R]
24
25    RewriteCond %{HTTP_HOST} !:444$
26    RewriteCond %{SERVER_NAME} !=scripts-cert.mit.edu
27    RewriteCond %{SERVER_NAME} !=scripts-cert
28    RewriteCond %{THE_REQUEST} ^[^\ ]*\ (.*)\ .*
29    RewriteRule ^ https://%{SERVER_NAME}:444%1 [L,R]
30
31    RewriteCond %{HTTP_USER_AGENT} Mac\ OS\ X.*AppleWebKit
32    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/needcerts(.*) /__scripts/certerror$1 [L]
33
34    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/needcerts(.+) $1 [L]
35    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/needcerts /__scripts/unauthorized.html [L]
36</Location>
37
38<Location /__scripts/certerror>
39    SSLVerifyClient require
40    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/certerror(.+) $1 [L]
41    RewriteRule /afs/athena.mit.edu/contrib/scripts/www/certerror /__scripts/unauthorized.html [L]
42</Location>
Note: See TracBrowser for help on using the repository browser.