summaryrefslogtreecommitdiff
path: root/data/templates/https
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-04-07 11:58:29 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-04-07 16:11:51 -0500
commit4c89134c632de11da52564f432483011a1cd0034 (patch)
tree13d03f4cfa450f7b9cefb5c04bb9eb9c8a6532ee /data/templates/https
parent44c67e54ef6ecdf4d7b62e765ccfa4e724c14316 (diff)
downloadvyos-1x-4c89134c632de11da52564f432483011a1cd0034.tar.gz
vyos-1x-4c89134c632de11da52564f432483011a1cd0034.zip
http api: T4347: return complete and consistent error codes
Diffstat (limited to 'data/templates/https')
-rw-r--r--data/templates/https/nginx.default.tmpl13
1 files changed, 0 insertions, 13 deletions
diff --git a/data/templates/https/nginx.default.tmpl b/data/templates/https/nginx.default.tmpl
index e8511bd62..a51505270 100644
--- a/data/templates/https/nginx.default.tmpl
+++ b/data/templates/https/nginx.default.tmpl
@@ -53,19 +53,6 @@ server {
}
error_page 497 =301 https://$host:{{ server.port }}$request_uri;
- error_page 501 502 503 =200 @50*_json;
-
-{% if api_set %}
- location @50*_json {
- default_type application/json;
- return 200 '{"error": "service https api unavailable at this proxy address: set service https api-restrict virtual-host"}';
- }
-{% else %}
- location @50*_json {
- default_type application/json;
- return 200 '{"error": "Start service in configuration mode: set service https api"}';
- }
-{% endif %}
}