Skip to content

Commit ec82782

Browse files
committed
Geez, shouldn't be proxying static content through Hudson.
1 parent 6d5eef6 commit ec82782

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

conf/jruby.conf

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,7 @@ server {
4848
}
4949

5050
location /apidocs {
51-
include /etc/nginx/common/proxy.conf;
52-
53-
if ($request_uri ~ ^/apidocs$) {
54-
rewrite ^/apidocs$ /apidocs/ redirect;
55-
}
56-
57-
if (!-f $request_filename) {
58-
rewrite ^/apidocs/(.*)$ /job/jruby-dist/javadoc/$1;
59-
proxy_pass http://hudson_upstream;
60-
break;
61-
}
51+
alias /builds/jobs/jruby-dist/javadoc/;
6252
}
6353

6454
location / {

0 commit comments

Comments
 (0)