Skip to content

Commit 3954911

Browse files
author
Joshua Rogers
authored
Create missing_variable_2.conf
1 parent b3ec9f7 commit 3954911

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
location /b {
2+
rewrite ^ $request_uri; # Sets the $1/$uri variable to the raw path
3+
proxy_pass http://127.0.0.1:8000; # No $1 or $uri or other variable, resulting in path being double-encoded
4+
}
5+
6+
# Request received by nginx: /%2F
7+
# Request received by backend: /%252F

0 commit comments

Comments
 (0)