diff --git a/server/conf/nginx_vhost.conf.master b/server/conf/nginx_vhost.conf.master
index c7e36de39e341ebcb40671d80ad47aac626f7e87..e00a892fece390ee61e6aa97d98bae5dd402e0fc 100644
--- a/server/conf/nginx_vhost.conf.master
+++ b/server/conf/nginx_vhost.conf.master
@@ -34,7 +34,7 @@ server {
         server_name <tmpl_var name='domain'> <tmpl_var name='alias'>;
 
         root   <tmpl_var name='web_document_root_www'>;
-		disable_symlinks if_not_owner;
+		disable_symlinks if_not_owner from=$document_root;
 
 <tmpl_if name='ssl_enabled'>
 <tmpl_if name='rewrite_to_https' op='==' value='y'>