coren has uploaded a new change for review. https://gerrit.wikimedia.org/r/123629
Change subject: Tool Labs: moar urlproxy tweaks ...................................................................... Tool Labs: moar urlproxy tweaks Change-Id: I8b3c7c1fcbe9e01e1fd91f67fad6e5a310aacd31 --- M modules/dynamicproxy/files/urlproxy.lua 1 file changed, 11 insertions(+), 11 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/29/123629/1 diff --git a/modules/dynamicproxy/files/urlproxy.lua b/modules/dynamicproxy/files/urlproxy.lua index d421dd9..964fa77 100644 --- a/modules/dynamicproxy/files/urlproxy.lua +++ b/modules/dynamicproxy/files/urlproxy.lua @@ -64,16 +64,16 @@ if route then ngx.var.backend = route ngx.exit(ngx.OK) +else + -- Oh noes! Even the admin prefix is dead! + -- Fall back to the static site + if rest then + -- the URI had a slash, so the user clearly expected /something/ + -- there. Fail because there is no registered webservice. + ngx.exit(503) + else + ngx.var.backend = '' + ngx.exit(ngx.OK) + end end - -if rest then - -- the URI had a slash, so the user clearly expected /something/ - -- there. Fail because there is no registered webservice. - ngx.exit(503) -end - --- Oh noes! Even the admin prefix is dead! --- Fall back to the static site -ngx.var.backend = '' -ngx.exit(ngx.OK) -- To view, visit https://gerrit.wikimedia.org/r/123629 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8b3c7c1fcbe9e01e1fd91f67fad6e5a310aacd31 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: coren <mpellet...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits