diff --git a/conf/nginx.conf.template b/conf/nginx.conf.template index 2f975ef..95d0e35 100644 --- a/conf/nginx.conf.template +++ b/conf/nginx.conf.template @@ -567,12 +567,6 @@ http { return 400; } - # Not allowed behind ingress. - # - if ($http_script_name) { - return 403; - } - # Canonicalize key. # set_by_lua_file $canonical_path /etc/nginx/canonicalize_path.ljbc; diff --git a/tests/end2end/test_simple.py b/tests/end2end/test_simple.py index 3346fcb..afd76ef 100644 --- a/tests/end2end/test_simple.py +++ b/tests/end2end/test_simple.py @@ -143,7 +143,7 @@ def test_simple_upload_and_copy_behind_ingress(self): ) success = 'SUCCESSFUL'.encode('utf-8') copy = self.session.get(url, data=success, headers={'Script-Name': '/foo'}) - assert copy.status_code == 403 + assert copy.status_code == 200 # Upload without ingress and download with ingress url = '{artifacts_url}/upload/{container}/.final_status'.format(