commit
This commit is contained in:
parent
f6f7521ffe
commit
797dff685b
21 changed files with 51 additions and 37 deletions
15
ressources/glpi/rootfs/apache2-glpi.conf
Normal file
15
ressources/glpi/rootfs/apache2-glpi.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName glpi.domaine.com
|
||||
DocumentRoot /usr/share/glpi/public
|
||||
|
||||
<directory /usr/share/glpi/public>
|
||||
Options FollowSymLinks
|
||||
AllowOverride all
|
||||
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>
|
6
ressources/glpi/rootfs/downstream.php
Normal file
6
ressources/glpi/rootfs/downstream.php
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
define('GLPI_CONFIG_DIR', '/etc/glpi/');
|
||||
|
||||
if (file_exists(GLPI_CONFIG_DIR . '/local_define.php')) {
|
||||
require_once GLPI_CONFIG_DIR . '/local_define.php';
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
|
3
ressources/glpi/rootfs/local_define.php
Normal file
3
ressources/glpi/rootfs/local_define.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
define('GLPI_VAR_DIR', '/var/lib/glpi/files/');
|
||||
define('GLPI_LOG_DIR', '/var/log/glpi');
|
|
@ -1,10 +0,0 @@
|
|||
<VirtualHost *:80>
|
||||
ServerName glpi.domaine.com
|
||||
DocumentRoot /usr/share/glpi
|
||||
|
||||
<directory /usr/share/glpi>
|
||||
Options FollowSymLinks
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
</directory>
|
||||
</VirtualHost>
|
|
@ -1 +0,0 @@
|
|||
|
Loading…
Add table
Add a link
Reference in a new issue