Skip to content

Commit 1a63877

Browse files
fix: check if relative path is specified in require_uri and return 403 (#287)
1 parent 221ff16 commit 1a63877

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nginx/default.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
server {
22
listen 8080;
33

4+
if ($request_uri ~ "\.\./"){
5+
return 403;
6+
}
7+
48
location / {
59
root /usr/share/nginx/html;
610
index index.html index.htm;

0 commit comments

Comments
 (0)