From d084752d0b3e5265e956b5369eb598068647a29f Mon Sep 17 00:00:00 2001 From: saravanan_477at17 Date: Mon, 28 Feb 2022 12:12:49 +0530 Subject: [PATCH] Fixes #4378: Media directories access Nginx configuration changes added --- docker-scripts/nginx.conf | 4 ++++ restyaboard.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docker-scripts/nginx.conf b/docker-scripts/nginx.conf index 9341ad75b..7f048a0aa 100644 --- a/docker-scripts/nginx.conf +++ b/docker-scripts/nginx.conf @@ -29,6 +29,10 @@ server { root /var/lib/nginx/html/client; } + location ^~ /media { + deny all; + } + location ~ \.php$ { try_files $uri =404; include fastcgi_params; diff --git a/restyaboard.conf b/restyaboard.conf index effec5d14..83621345e 100644 --- a/restyaboard.conf +++ b/restyaboard.conf @@ -29,6 +29,10 @@ server { root /usr/share/nginx/html/client; } + location ^~ /media { + deny all; + } + location ~ \.php$ { try_files $uri =404; include fastcgi_params;