You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-01-10 13:48:28

ecanton
Member
Registered: 2016-10-18
Posts: 55

Warning in general config

Hi,

When i access to CONFIG-> GENERAL -> SYSTEM -> SERVER, appear the next warning

Web access to the files directory, should not be allowed
Check the .htaccess file and the web server configuration.

Can i quit this warning?? What's happen?

Thanks so much!

Offline

#2 2017-01-10 14:49:57

freewood
Member
From: Moscow
Registered: 2016-01-30
Posts: 116

Re: Warning in general config

Hello. You should close direct access to the files directory in you web server config.
For example how it's done on the nginx web server:

location ~ ^/files/(.+)$ {
        deny all;
    }

Debian Stretch + nginx 1.10.3 + php7.0-fpm
GLPI v9.3.1 + Reports, Behaviors, Forms

Offline

#3 2017-01-10 17:46:29

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: Warning in general config

freewood wrote:

Hello. You should close direct access to the files directory in you web server config.
For example how it's done on the nginx web server:

location ~ ^/files/(.+)$ {
        deny all;
    }

First, Thanks so much!

I know this is the right solution, but I do not do it properly.

Can you help me do it like I'm in school?

Thank you very much again.

Offline

#4 2017-01-10 18:59:18

freewood
Member
From: Moscow
Registered: 2016-01-30
Posts: 116

Re: Warning in general config

Im also not a proffesional web-server administrator, but i will try )
Which web-server you use?


Debian Stretch + nginx 1.10.3 + php7.0-fpm
GLPI v9.3.1 + Reports, Behaviors, Forms

Offline

#5 2017-01-11 09:33:53

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: Warning in general config

I'm using ubuntu 16, with apache, php ... normal server.

Offline

#6 2017-01-11 09:51:46

freewood
Member
From: Moscow
Registered: 2016-01-30
Posts: 116

Re: Warning in general config

Check that you have ".htaccess" file in glpi/files directory.
The file content should be "deny from all"


Debian Stretch + nginx 1.10.3 + php7.0-fpm
GLPI v9.3.1 + Reports, Behaviors, Forms

Offline

#7 2017-01-11 14:07:06

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Warning in general config

Edit - sorry topic sad

Last edited by KKAdmin (2017-01-11 14:12:17)


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#8 2017-01-13 09:37:40

ecanton
Member
Registered: 2016-10-18
Posts: 55

Re: Warning in general config

freewood wrote:

Check that you have ".htaccess" file in glpi/files directory.
The file content should be "deny from all"

Yes, it is! But the message is there.

Offline

#9 2020-10-13 08:14:21

la_pompe
Member
Registered: 2020-10-12
Posts: 4

Re: Warning in general config

Hi,
have you found a solution to this problem?
Because on my side I always have this warning which, despite my attempts, remains. (I'm on a centos 8 with nginx and on the latest version of glpi)

Offline

Board footer

Powered by FluxBB