Skip to content

Commit

Permalink
Fixes #4378: Media directories access Nginx configuration changes added
Browse files Browse the repository at this point in the history
  • Loading branch information
saravanan477 committed Feb 28, 2022
1 parent fd98cd0 commit d084752
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-scripts/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ server {
root /var/lib/nginx/html/client;
}

location ^~ /media {
deny all;
}

location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
Expand Down
4 changes: 4 additions & 0 deletions restyaboard.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ server {
root /usr/share/nginx/html/client;
}

location ^~ /media {
deny all;
}

location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
Expand Down

0 comments on commit d084752

Please sign in to comment.