Fix nginx security issue

This commit is contained in:
Josué Tille 2017-12-30 16:56:07 +01:00
parent db0cc79e4b
commit e939ef89ea
2 changed files with 3 additions and 3 deletions

View file

@ -26,8 +26,8 @@ location /seafhttp/ {
}
location PATHTOCHANGE2media {
alias ALIASTOCHANGEseafile-server-latest/seahub/media;
location PATHTOCHANGE2media/ {
alias ALIASTOCHANGEseafile-server-latest/seahub/media/;
}
location /seafdav {

View file

@ -61,7 +61,7 @@ nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf
if [ $change_path -eq 1 ]
then
ynh_replace_string "location $old_path {" "location $new_path {" "$nginx_conf_path"
ynh_replace_string "location ${old_path2}media {" "location ${new_path2}media {" "$nginx_conf_path"
ynh_replace_string "location ${old_path2}media/ {" "location ${new_path2}media/ {" "$nginx_conf_path"
fi
# Change the domain for nginx