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 2025-03-26 13:47:13

viteok1
Member
Registered: 2025-03-25
Posts: 10

Alias dont work

Hello !

I can access my GLPI server using http://localhost/, but I can't access it from http://localhost/glpi. I added an alias Alias "/glpi" "/var/www/html/glpi/public", but it doesn’t work.

I’ll share my VirtualHost configuration, which I set up following the official documentation.

If you could give me a hand, I’d really appreciate it! Thanks in advance!

<VirtualHost *:80>
ServerName localhost

DocumentRoot /var/www/html/glpi/public
Alias "/glpi" "/var/www/html/glpi/public"

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

    RewriteEngine On

    RewriteCond %{HTTP:Authorization} ^(.+)$
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>


-----------------------------------------------------------------------------------------------

Finally, i found a solution that works. In the VirtualHost configuration, you need to add the alias in the following line: ,,RewriteRule ^(.*)$ glpi/index.php [QSA,L]"

Last edited by viteok1 (2025-03-26 15:10:45)

Offline

Board footer

Powered by FluxBB