Define disable_symlinks nginx config rule globally

This commit is contained in:
Daniel Winzen
2019-10-20 13:17:08 +02:00
parent 724ef98c9b
commit 079b771717
2 changed files with 1 additions and 2 deletions

View File

@ -508,7 +508,6 @@ function rewrite_nginx_config(PDO $db){
access_log /home/$tmp[system_account]/logs/access.log custom buffer=4k flush=1m;
error_log /var/log/nginx/error_$tmp[system_account].log notice;
error_log /home/$tmp[system_account]/logs/error.log notice;
disable_symlinks on from=/home/$tmp[system_account];
autoindex $autoindex;
";
if(isset($rewrites[$tmp['id']])){
@ -542,7 +541,6 @@ function rewrite_nginx_config(PDO $db){
access_log /home/$tmp[system_account]/logs/access.log custom buffer=4k flush=1m;
error_log /var/log/nginx/error_$tmp[system_account].log notice;
error_log /home/$tmp[system_account]/logs/error.log notice;
disable_symlinks on from=/home/$tmp[system_account];
autoindex $autoindex;
";
if(isset($rewrites[$tmp['id']])){