forked from torquebox/torquebox.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·26 lines (17 loc) · 1.45 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ErrorDocument 404 /404.html
SetEnvIf Request_URI .* base_artifact_url=https://projectodd.ci.cloudbees.com/job/torquebox/lastSuccessfulBuild/label=m1.large,ruby_compat_version=1.8/artifact
SetEnvIf Request_URI .* release_url=http://d2t70pdxfgqbmq.cloudfront.net/release
RewriteEngine on
RewriteRule ^documentation/LATEST/torquebox-doc\.pdf$ %{ENV:base_artifact_url}/docs/en-US/target/docbook/publish/en-US/pdf/torquebox-docs-en_US.pdf [P]
RewriteRule ^documentation/LATEST$ /documentation/LATEST/ [R]
RewriteRule ^documentation/LATEST/?$ %{ENV:base_artifact_url}/docs/en-US/target/docbook/publish/en-US/xhtml/index.html [P]
RewriteRule ^documentation/LATEST/(.*)$ %{ENV:base_artifact_url}/docs/en-US/target/docbook/publish/en-US/xhtml/$1 [P]
RewriteRule ^builds/([0-9]+)/torquebox-dist-bin.zip$ https://projectodd.ci.cloudbees.com/job/torquebox/$1/label=m1.large,ruby_compat_version=1.8/artifact/dist/target/torquebox-dist-bin.zip [P]
RewriteRule ^builds/LATEST/torquebox-dist-bin.zip$ %{ENV:base_artifact_url}/dist/target/torquebox-dist-bin.zip [P]
RewriteRule ^release/(.*)$ %{ENV:release_url}/$1 [R,L]
SetEnvIfNoCase Request_URI torquebox-dist-bin\.zip$ torquebox-latest
Header set Content-Disposition \
"attachment; filename=torquebox-dist-bin.zip" env=torquebox-latest
SetEnvIfNoCase Request_URI torquebox-doc\.pdf torquebox-doc-latest
Header set Content-Disposition \
"attachment; filename=torquebox-doc.pdf" env=torquebox-doc-latest