Skip to content

Commit 2e67751

Browse files
committed
Fix proxy_pass: Add $request_uri to preserve full request path and query
- Changed proxy_pass http://owlery to proxy_pass http://owlery$request_uri - This ensures the full request URI including path and query parameters are forwarded - Fixes potential issues with malformed requests reaching Tomcat - Both port 80 and 8080 server blocks updated
1 parent 236ff88 commit 2e67751

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nginx.conf.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ http {
5050
}
5151

5252
location / {
53-
proxy_pass http://owlery;
53+
proxy_pass http://owlery$request_uri;
5454
proxy_http_version 1.1;
5555
proxy_set_header Connection "";
5656
proxy_connect_timeout 90s;
@@ -82,7 +82,7 @@ http {
8282
}
8383

8484
location / {
85-
proxy_pass http://owlery;
85+
proxy_pass http://owlery$request_uri;
8686
proxy_http_version 1.1;
8787
proxy_set_header Connection "";
8888
proxy_connect_timeout 90s;

0 commit comments

Comments
 (0)