rainloop data folder is accessible how to fix on nginx ?

knoll

Verified User
Joined
Sep 26, 2005
Messages
140
Location
Belgium
hey i'm getting this in rainloop admin:
RainLoop data folder is accessible. Please configure your web server to hide the data folder from external access. Read more here: https://www.rainloop.net/docs/installation

this is what i tryed but not working:
in /etc/nginx/webapps.conf this code its bolded and not working should it be elsewhere?:

more lines of code on top
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 444;
}
location ~ /(\.htaccess|\.htpasswd|\.user\.ini) {
deny all;
}
location ^~ /data {
deny all;
}

location ~ /roundcube/(bin|SQL|config|logs|temp)/ {
deny all;
}
location ~ /phpMyAdmin/log/ {
deny all;
}
location ^~ /rainloop {
root /var/www/html/;
index index.php index.html index.htm;
client_max_body_size 2G;
location ~ ^/rainloop/(.+\.php)$ {
include /etc/nginx/webapps_settings.conf;
}
location ~* ^/rainloop/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /var/www/html/;
}
}
 
Hello,


Try this instead:


Code:
        location ^~ /rainloop {
                root /var/www/html/;
                index index.php index.html index.htm;
                client_max_body_size 2G;
                location ~ ^/rainloop/data/ {
                        deny all;
                }
                location ~ ^/rainloop/(.+\.php)$ {
                        include /etc/nginx/webapps_settings.conf;
                }




or simply


Code:
                location ~ ^/rainloop/data/ {
                        deny all;
                }
 
Hello,


Try this instead:


Code:
        location ^~ /rainloop {
                root /var/www/html/;
                index index.php index.html index.htm;
                client_max_body_size 2G;
                location ~ ^/rainloop/data/ {
                        deny all;
                }
                location ~ ^/rainloop/(.+\.php)$ {
                        include /etc/nginx/webapps_settings.conf;
                }




or simply


Code:
                location ~ ^/rainloop/data/ {
                        deny all;
                }

many thanks it works !! grz alex
 
and where to copy the /etc/nginx/webapps.conf to have them in template ? for rebuilds
copy to /usr/local/directadmin/custombuild/configure/nginx/conf/webapps.conf
doesn't work i guess the wrong path copyed on
 
Try

under /usr/local/directadmin/custombuild/custom/nginx_reverse/conf/ for nginx+apache
under /usr/local/directadmin/custombuild/custom/nginx/conf/ for stand-alone nginx
 
Back
Top