mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-15 01:14:53 +03:00
Add trailing slash in nginx configuration to avoid path traversal exploits
This commit is contained in:
parent
224aded7c8
commit
63520c9b26
|
@ -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/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user