Closed SilvaFernando closed 1 year ago
Your configuration does not seems correct, using DocumentRoot
and Alias
like you do.
This is an apache configuration issue, not a GLPI issue.
This issue has been closed as we only track bugs here.
You can get community support on forums or you can consider taking a subscription to get professional support. You can also contact GLPI editor team directly.
If you want to use alias, it probably means that GLPI must not be your DocumentRoot
. Use a single virtual host, and set it document root to what you expect to be the directory exposed when you request the index of your domain.
<VirtualHost *:80>
DocumentRoot /var/www/html
Alias "/glpi" "/usr/share/glpi/public"
<Directory /usr/share/glpi/public>
Require all granted
RewriteEngine On
# Redirect all requests to GLPI router, unless file exists.
RewriteCond %{REQUEST_REQUEST} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
Alias "/glpi2" "/usr/share/glpi2/public"
<Directory /usr/share/glpi2/public>
Require all granted
RewriteEngine On
# Redirect all requests to GLPI router, unless file exists.
RewriteCond %{REQUEST_REQUEST} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
</VirtualHost>
@cedric-anne, thanks for your awesome response, solves our problem.
Thanks.
Code of Conduct
Is there an existing issue for this?
Version
10.0.7
Bug description
After updating to 10.0.7 if we apply the vhost fix documented in the link: https://glpi-install.readthedocs.io/pt/latest/prerequisites.html
We are not able to use more than one GLPI on the same server, one point is if we don't adjust the VHOST for public directory adjustments, we can use it normally.
Follow Vhosts used: <VirtualHost *:80>
---glpi2 Vhost <VirtualHost *:80>
Is it possible to work this way with GLPI version 10.0.7? If yes, can you show me where I'm going wrong?
Relevant log output
No response
Page URL
http://209.126.12.158:8135/glpi2 or http://209.126.12.158:8135/glpi
Steps To reproduce
Update both GLPI for 10.0.7 Adjust VHost for new security directive
Your GLPI setup information
Instruções de instalação e configuração
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response