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 2023-04-19 03:49:31

tuanna
Member
Registered: 2023-04-18
Posts: 2

While installing GLPI 10.0.7, I received a warning that the web server

Can you help me address this issue?"

"Suggested
Safe configuration of web root directory
Web server root directory should be '/var/www/html/glpi/public to ensure non-public files cannot be accessed.
Web server root directory configuration is not safe as it permits access to non-public files. See installation
documentation for more details."

Offline

#2 2023-04-19 14:41:54

cconard96
Moderator
Registered: 2018-07-31
Posts: 2,813
Website

Re: While installing GLPI 10.0.7, I received a warning that the web server

Please refer to the installation documentation for more details:
https://glpi-install.readthedocs.io/en/ … web-server


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2023-04-20 04:43:18

tuanna
Member
Registered: 2023-04-18
Posts: 2

Re: While installing GLPI 10.0.7, I received a warning that the web server

I should add the following code to which file: my default apache2 file is located at /etc/apache2/sites-available/000-default.conf

<VirtualHost *:80>
ServerName glpi.localhost
DocumentRoot /var/www/glpi/public

# If you want to place GLPI in a subfolder of your site (e.g. your virtual host is serving multiple applications),
# you can use an Alias directive:
# Alias "/glpi" "/var/www/glpi/public"

<Directory /var/www/glpi/public>
    Require all granted

    RewriteEngine On

    # Redirect all requests to GLPI router, unless file exists.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
DocumentRoot /var/www/glpi/public

# If you want to place GLPI in a subfolder of your site (e.g. your virtual host is serving multiple applications),
# you can use an Alias directive:
# Alias "/glpi" "/var/www/glpi/public"

<Directory /var/www/glpi/public>
    Require all granted

    RewriteEngine On

    # Redirect all requests to GLPI router, unless file exists.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
DocumentRoot /var/www/glpi/public

# If you want to place GLPI in a subfolder of your site (e.g. your virtual host is serving multiple applications),
# you can use an Alias directive:
# Alias "/glpi" "/var/www/glpi/public"

<Directory /var/www/glpi/public>
    Require all granted

    RewriteEngine On

    # Redirect all requests to GLPI router, unless file exists.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
</VirtualHost>

Offline

Board footer

Powered by FluxBB