• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RewriteEngine On
2
3# These rules are disabled so our site specific ReWrite rules will work,
4# these are located in site-misc-directives.
5# This rule is meant for autotest installations under a single directory,
6# such as when pulling the code from git or from a tarball.
7# RewriteCond /usr/local/autotest/results -d
8# RewriteRule ^/results(.*) /usr/local/autotest/results/$1
9
10# This rule is meant for autotest installations from a package such as RPM.
11# RewriteCond /var/lib/autotest/results -d
12# RewriteRule ^/results(.*) /var/lib/autotest/results/$1
13
14Alias /results "/usr/local/autotest/results"
15<Location "/results">
16    IndexHeadInsert "<img src='/afe/header.png'/><hr/>"
17    Options +Indexes +FollowSymLinks +MultiViews
18    <IfVersion >= 2.4>
19        Require all granted
20    </IfVersion>
21    <IfVersion <= 2.2.99>
22        Order allow,deny
23        Allow from all
24    </IfVersion>
25</Location>
26
27<LocationMatch "/results.*\.(log|DEBUG|INFO|WARNING|ERROR)$">
28    ForceType "text/plain; authoritative=true"
29</LocationMatch>
30
31# This rule is meant for autotest installations under a single directory,
32# such as when pulling the code from git or from a tarball.
33RewriteCond /usr/local/autotest/tko -d
34RewriteRule ^/tko(.*) /usr/local/autotest/tko/$1
35
36# These rules serve the tko interface when installed together with autotest
37# libraries on python site-packages. Covers python versions 2.4 through 2.7.
38RewriteCond /usr/lib/python2.7/site-packages/autotest/tko -d
39RewriteRule ^/tko(.*) /usr/lib/python2.7/site-packages/autotest/tko/$1
40
41RewriteCond /usr/lib/python2.6/site-packages/autotest/tko -d
42RewriteRule ^/tko(.*) /usr/lib/python2.6/site-packages/autotest/tko/$1
43
44RewriteCond /usr/lib/python2.5/site-packages/autotest/tko -d
45RewriteRule ^/tko(.*) /usr/lib/python2.5/site-packages/autotest/tko/$1
46
47RewriteCond /usr/lib/python2.4/site-packages/autotest/tko -d
48RewriteRule ^/tko(.*) /usr/lib/python2.4/site-packages/autotest/tko/$1
49
50<Location "/tko">
51    Options +ExecCGI +Indexes +MultiViews +SymLinksIfOwnerMatch
52    DirectoryIndex compose_query.cgi
53    <IfVersion >= 2.4>
54        Require all granted
55    </IfVersion>
56    # Non existing version, safeguard against new 2.2 releases
57    <IfVersion <= 2.2.99>
58        Order allow,deny
59        Allow from all
60    </IfVersion>
61</Location>
62