Bonjour
Alors voila j’ai deux sites WEB pour GLPI et OCS.
J’aimerais pouvoir acceder au 2 depuis mon reseau en rentrant l’adresse ip de mon serveur suivi d’un /ocs ou /glpi.
Exemple: 192.168.10.101/glpi et 192.168.10.101/ocsreports
J’ai suivis ce tuto pour les alias https://doc.ubuntu-fr.org/tutoriel/virtualhosts_avec_apache2 mais cela ne marche pas.
Mes alias ressemblent à ceci
<VirtualHost *:80>
ServerName 192.168.10.101/glpi
ServerAlias 192.168.10.101/glpi
DocumentRoot /var/www/glpi/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
**<Directory /var/www/glpi>**
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
La même pouur le fichier OCS.
Dans le fichier Hosts qui se trouve dans /etc/ j’ai ajouté sa:
192.168.10.101 192.168.10.101/glpi
192.168.10.101 192.168.10.101/ocsreports
Voila merci pour votre aide car la je sèche completement