You are not logged in.
Pages: 1
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
Pages: 1