1 Alias /packages "/usr/local/autotest/packages/" 2 3 # If the results directory doesn't exist locally, toss it to Google Storage. 4 RewriteEngine On 5 6 # Redirect job result url. 7 RewriteCond %{REQUEST_URI} ^/results/([0-9].*)$ 8 RewriteCond /usr/local/autotest/%{REQUEST_URI} !-f 9 RewriteCond /usr/local/autotest/%{REQUEST_URI} !-d 10 RewriteRule ^/results/([0-9].*) https://pantheon.corp.google.com/storage/browser/chromeos-autotest-results/$1 [R=301,L] 11 12 # Redirect special task result url. 13 RewriteCond %{REQUEST_URI} ^/results/(hosts/.*)$ 14 RewriteCond /usr/local/autotest/%{REQUEST_URI} !-f 15 RewriteCond /usr/local/autotest/%{REQUEST_URI} !-d 16 RewriteRule ^/results/hosts/(.*/[0-9].*) https://pantheon.corp.google.com/storage/browser/chromeos-autotest-results/hosts/$1 [R=301,L] 17