Add trailing slash in nginx configuration to avoid path traversal exploits

This commit is contained in:
Arkadiusz Ryś 2020-04-05 12:40:54 +02:00
parent 224aded7c8
commit 63520c9b26
No known key found for this signature in database
GPG Key ID: 8557F612E405EF84

View File

@ -1,7 +1,7 @@
server { server {
listen 80; listen 80;
server_name localhost; server_name localhost;
location /media { location /media/ {
autoindex on; autoindex on;
alias /usr/share/nginx/media/; alias /usr/share/nginx/media/;
} }