Nginx configuration and admin panel

Post Reply
User avatar
Ringo
Jr. Bludit
Posts: 7
Joined: Mon Jul 30, 2018 12:12 pm

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"
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
I think the problem is for this rule.

Code: Select all

location ^~ /bl-kernel/ { deny all; } 
Can you remove it ?
User avatar
Ringo
Jr. Bludit
Posts: 7
Joined: Mon Jul 30, 2018 12:12 pm

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
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

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
.
User avatar
Ringo
Jr. Bludit
Posts: 7
Joined: Mon Jul 30, 2018 12:12 pm

OK, thanks.
I've commented line

Code: Select all

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