From 8d68687e2887d486273cdc759b1499d3c0e4601c Mon Sep 17 00:00:00 2001 From: merry-degaga <97123508+merry-degaga@users.noreply.github.com> Date: Thu, 9 Nov 2023 21:27:43 -0500 Subject: [PATCH] Bugfix/issue 60 (#95) --- nginx.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nginx.conf b/nginx.conf index 5aae410..ce686ed 100755 --- a/nginx.conf +++ b/nginx.conf @@ -28,7 +28,7 @@ http { set $VulnerableApplication VulnerableApp-jsp; proxy_pass http://$VulnerableApplication:8080; } - + location /VulnerableApp-php { # As VulnerableApp-Facade should run even if some of the Vulnerable Applications are not present # there for added below configuration. @@ -38,7 +38,7 @@ http { proxy_pass http://$VulnerableApplication:80; } - location /VulnerabilityDefinitions { + location = /VulnerabilityDefinitions { default_type 'application/json'; content_by_lua_block { local vulnerableAppResponse = ngx.location.capture("/VulnerableApp/VulnerabilityDefinitions") @@ -48,7 +48,7 @@ http { } } - location /scanner/dast { + location = /scanner/dast { default_type 'application/json'; content_by_lua_block { local vulnerableAppResponse = ngx.location.capture("/VulnerableApp/scanner") @@ -58,7 +58,7 @@ http { } } - location /scanner/sast { + location = /scanner/sast { default_type 'application/json'; content_by_lua_block { local vulnerableAppResponse = ngx.location.capture("/VulnerableApp/scanner/sast") @@ -67,7 +67,7 @@ http { ngx.say(require("vulnerableapp_utility").merge_vulnerability_information(vulnerableAppResponse, vulnerableAppJspResponse, vulnerableAppPhpResponse)) } } - + location / { root /usr/share/nginx/html; }