Page 1 of 1

Nginx configuration and admin panel

Posted: Mon Jul 30, 2018 12:18 pm
by Ringo
Hello.
I've installed Bludit on Ubuntu 18.04 with nginx/1.14.0
I use config from docs (https://docs.bludit.com/en/webservers/nginx), but I get a 403 errors when logging to admin panel:

Code: Select all

2018/07/30 15:16:19 [error] 7952#7952: *211 access forbidden by rule, client: , server: , request: "GET /bl-kernel/admin/themes/default/css/uikit/uikit.almost-flat.min.css?version=2.3.4 HTTP/2.0"
2018/07/30 15:16:19 [error] 7952#7952: *211 access forbidden by rule, client: , server: , request: "GET /bl-kernel/admin/themes/default/css/login.css?version=2.3.4 HTTP/2.0"
2018/07/30 15:16:19 [error] 7952#7952: *211 access forbidden by rule, client: , server: , request: "GET /bl-kernel/admin/themes/default/img/favicon.png?version=2.3.4 HTTP/2.0"

Re: Nginx configuration and admin panel

Posted: Mon Jul 30, 2018 1:10 pm
by diego
Hi,
I think the problem is for this rule.

Code: Select all

location ^~ /bl-kernel/ { deny all; } 
Can you remove it ?

Re: Nginx configuration and admin panel

Posted: Mon Jul 30, 2018 2:02 pm
by Ringo
Without this rule everything works OK, but in docs https://docs.bludit.com/en/webservers/nginx
there is a mention:
For security reasons dont forget to forbid the access to the folder /bl-kernel

Re: Nginx configuration and admin panel

Posted: Mon Jul 30, 2018 2:08 pm
by diego
I going to fix it, someone creates the changes and I don't realize about it.

Maybe the best solution creates some rule like this

Code: Select all

/bl-kernel/*.php
.

Re: Nginx configuration and admin panel

Posted: Mon Jul 30, 2018 3:36 pm
by Ringo
OK, thanks.
I've commented line

Code: Select all

location ^~ /bl-kernel/ { deny all; }