Define disable_symlinks nginx config rule globally
This commit is contained in:
@ -35,6 +35,7 @@ http {
|
|||||||
port_in_redirect off;
|
port_in_redirect off;
|
||||||
charset UTF-8;
|
charset UTF-8;
|
||||||
index index.html index.htm index.php index.hosting.html;
|
index index.html index.htm index.php index.hosting.html;
|
||||||
|
disable_symlinks if_not_owner;
|
||||||
|
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
@ -508,7 +508,6 @@ function rewrite_nginx_config(PDO $db){
|
|||||||
access_log /home/$tmp[system_account]/logs/access.log custom buffer=4k flush=1m;
|
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 /var/log/nginx/error_$tmp[system_account].log notice;
|
||||||
error_log /home/$tmp[system_account]/logs/error.log notice;
|
error_log /home/$tmp[system_account]/logs/error.log notice;
|
||||||
disable_symlinks on from=/home/$tmp[system_account];
|
|
||||||
autoindex $autoindex;
|
autoindex $autoindex;
|
||||||
";
|
";
|
||||||
if(isset($rewrites[$tmp['id']])){
|
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;
|
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 /var/log/nginx/error_$tmp[system_account].log notice;
|
||||||
error_log /home/$tmp[system_account]/logs/error.log notice;
|
error_log /home/$tmp[system_account]/logs/error.log notice;
|
||||||
disable_symlinks on from=/home/$tmp[system_account];
|
|
||||||
autoindex $autoindex;
|
autoindex $autoindex;
|
||||||
";
|
";
|
||||||
if(isset($rewrites[$tmp['id']])){
|
if(isset($rewrites[$tmp['id']])){
|
||||||
|
Reference in New Issue
Block a user